Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit f00d7e3

Browse files
authored
Merge pull request #7032 from livecodeian/feature-prebuilt-thirdparty-PIC
[[ Prebuilt ]] Ensure linux thirdparty libs are prebuilt with position-independent code
2 parents 3361d5f + c010244 commit f00d7e3

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

config/linux-settings.gypi

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,6 @@
2929
# need to be compiled with the correct compilation flags
3030
'target_conditions':
3131
[
32-
[
33-
'_type' == "executable" or '_type == "loadable_module" or _type == "shared_library" or (_type == "static_library" and library_for_module != 0)',
34-
{
35-
'cflags':
36-
[
37-
'-fPIC',
38-
],
39-
},
40-
],
4132
[
4233
'server_mode == 0',
4334
{
@@ -100,6 +91,7 @@
10091

10192
'cflags':
10293
[
94+
'-fPIC',
10395
'-fstrict-aliasing',
10496
'-fvisibility=hidden',
10597
],

prebuilt/scripts/lib_versions.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
REM # This file sets the libraries versions defined in versions/
22

3-
FOR %%L in (OpenSSL ICU CEF Curl) DO (
3+
FOR %%L in (Thirdparty OpenSSL ICU CEF Curl) DO (
44
SET PREBUILT_LIB=%%L
55
SET /P !PREBUILT_LIB!_VERSION=<versions\!PREBUILT_LIB!
66
IF EXIST "versions\!PREBUILT_LIB!_buildrevision" (
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PIC

0 commit comments

Comments
 (0)