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:
commit
cc48bc79d6
2 changed files with 17 additions and 0 deletions
|
@ -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
|
||||
|
|
16
lib/libv8/fpic-on-freebsd-amd64.patch
Normal file
16
lib/libv8/fpic-on-freebsd-amd64.patch
Normal 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'],
|
Loading…
Add table
Reference in a new issue