mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
If on linux amd64, compile V8 objects with -fPIC for both C and C++ files.
This commit is contained in:
parent
3d2e0bcf03
commit
681b02e08c
2 changed files with 14 additions and 0 deletions
|
@ -18,6 +18,7 @@ $(SCONS): $(SCONSSRC)
|
|||
$(V8SRC): build
|
||||
cp -r 2.0.6 build/v8
|
||||
patch -td build/v8 -i ../../no-strict-aliasing.patch
|
||||
patch -td build/v8 -i ../../fpic-on-linux-amd64.patch
|
||||
|
||||
$(SCONSSRC): build
|
||||
cp -r scons build
|
||||
|
|
13
ext/v8/upstream/fpic-on-linux-amd64.patch
Normal file
13
ext/v8/upstream/fpic-on-linux-amd64.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- SConstruct
|
||||
+++ SConstruct
|
||||
@@ -139,6 +139,10 @@ LIBRARY_FLAGS = {
|
||||
'library:shared': {
|
||||
'CPPDEFINES': ['V8_SHARED'],
|
||||
'LIBS': ['pthread']
|
||||
+ },
|
||||
+ 'arch:x64': {
|
||||
+ 'CCFLAGS': ['-fPIC'],
|
||||
+ 'CXXFLAGS': ['-fPIC']
|
||||
}
|
||||
},
|
||||
'os:macos': {
|
Loading…
Reference in a new issue