Permalink
Browse files

fixed the compile problem with x64 linux

  • Loading branch information...
1 parent b902704 commit 6560822ee17e447c81efe9ca1ac78b60f36b7111 @tangzero committed May 24, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 libffi-config.sh
View
@@ -1,4 +1,9 @@
+
+if [ `getconf LONG_BIT` -eq 64 ]; then
+ CFLAGS="-fPIC"
+fi
+
cd deps/libffi
make clean distclean >node_ffi_configure.out 2>&1
-sh configure --enable-static --disable-shared --disable-builddir >>node_ffi_configure.out 2>&1
+sh configure --enable-static --disable-shared --disable-builddir CFLAGS="$CFLAGS" >>node_ffi_configure.out 2>&1
cd ../..

0 comments on commit 6560822

Please sign in to comment.