Browse files

Fix architecture mismatch when linking native code on OSX 10.6

  • Loading branch information...
1 parent dca0386 commit 269d344e40943d7de060bb0340c22ef8ec8c249e Mihai Balea committed Sep 8, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 scripts/prepare.sh
View
3 scripts/prepare.sh
@@ -10,6 +10,7 @@ ERLWS=`erl -noshell -eval "io:format(\"~p\",[erlang:system_info(wordsize)])" -s
if [ "$ERLWS" == 4 ]; then
CFLAGS=-m32
+ LDFLAGS=-m32
fi
-[ -d deps/uuid-1.6.2 ] || (cd deps && tar xzvfp uuid-1.6.2.tar.gz && cd uuid-1.6.2 && CFLAGS=$CFLAGS ./configure -disable-debug --without-perl --without-php --without-pgsql && make)
+[ -d deps/uuid-1.6.2 ] || (cd deps && tar xzvfp uuid-1.6.2.tar.gz && cd uuid-1.6.2 && CFLAGS=$CFLAGS LDFLAGS=$LDFLAGS ./configure -disable-debug --without-perl --without-php --without-pgsql && make)

0 comments on commit 269d344

Please sign in to comment.