]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix spidermonkey freebsd build take 2, try this
authorAnthony Minessale <anthony.minessale@gmail.com>
Sun, 1 Oct 2006 16:26:20 +0000 (16:26 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sun, 1 Oct 2006 16:26:20 +0000 (16:26 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2914 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/mozilla.build.sh

index 856c8d910631a11f52186f8776a24418ffe4c13a..6255d6e4f4a116a1fd09e11515e043b9bc917b39 100755 (executable)
@@ -1,5 +1,7 @@
 hosttype=`uname -s`
 
+pthreadopts=""
+
 if [ $hosttype = "FreeBSD" ] ; then
 
 patch <<__EOF__ 
@@ -20,8 +22,8 @@ patch <<__EOF__
 __EOF__
 
 cp js/src/config/Linux_All.mk js/src/config/`uname -s``uname -r`.mk
-ldflags=-lpthread
 
+pthreadopts=" --with-pthreads=yes"
 fi
 
 arch=`uname -m`
@@ -31,7 +33,7 @@ if [ $arch = "x86_64" ] ; then
 opts="--enable-64bit"
 fi
 
-cd nsprpub && LDFLAGS=$ldflags ./configure $opts && $MAKE
+cd nsprpub && ./configure $opts $pthreadopts && $MAKE
 
 cd ../js/src && JS_THREADSAFE=1 JS_HAS_FILE_OBJECT=1 OTHER_LIBS="-L../../../mozilla/nsprpub/dist/lib" INCLUDES="-I../../../mozilla/nsprpub/dist/include/nspr"  $MAKE -f Makefile.ref `find . -name libjs.a`