1
0
Fork 0
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:
Charles Lowell 2010-02-16 20:42:08 -06:00
parent 3d2e0bcf03
commit 681b02e08c
2 changed files with 14 additions and 0 deletions

View file

@ -18,6 +18,7 @@ $(SCONS): $(SCONSSRC)
$(V8SRC): build $(V8SRC): build
cp -r 2.0.6 build/v8 cp -r 2.0.6 build/v8
patch -td build/v8 -i ../../no-strict-aliasing.patch patch -td build/v8 -i ../../no-strict-aliasing.patch
patch -td build/v8 -i ../../fpic-on-linux-amd64.patch
$(SCONSSRC): build $(SCONSSRC): build
cp -r scons build cp -r scons build

View 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': {