1
0
Fork 0
mirror of https://github.com/rubyjs/libv8 synced 2023-03-27 23:21:48 -04:00

Merge pull request #35 from nurse/fpic-on-freebsd-amd64

FreeBSD amd64 also needs -fPIC.
This commit is contained in:
Logan Lowell 2012-04-02 14:21:04 -07:00
commit cc48bc79d6
2 changed files with 17 additions and 0 deletions

View file

@ -25,6 +25,7 @@ $(SCONS): $(SCONSSRC)
$(V8SRC): build
cp -r v8 build
patch -td build/v8 -i ../../fpic-on-linux-amd64.patch
patch -td build/v8 -i ../../fpic-on-freebsd-amd64.patch
$(SCONSSRC): build
cp -r scons build

View file

@ -0,0 +1,16 @@
diff --git a/SConstruct b/SConstruct
index 4a7e182..b462335 100644
--- a/SConstruct
+++ b/SConstruct
@@ -124,6 +124,10 @@ LIBRARY_FLAGS = {
'LIBPATH' : ['/usr/local/lib'],
'CCFLAGS': ['-ansi'],
- 'LIBS': ['execinfo']
+ 'LIBS': ['execinfo'],
+ 'arch:x64': {
+ 'CCFLAGS': ['-fPIC'],
+ 'CXXFLAGS': ['-fPIC']
+ },
},
'os:openbsd': {
'CPPPATH' : ['/usr/local/include'],