]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
force -lpthread on freebsd
authorMichael Jerris <mike@jerris.com>
Mon, 2 Oct 2006 03:36:26 +0000 (03:36 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 2 Oct 2006 03:36:26 +0000 (03:36 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2937 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/mozilla.build.sh

index 2a354b77b17d8976c423198f246699315a82b3a0..11d2761a3d9f1b73d3f560cde6216ed23a12d88c 100755 (executable)
@@ -1,7 +1,5 @@
 hosttype=`uname -s`
-
-pthreadopts=""
-
+ldflags=
 if [ $hosttype = "FreeBSD" ] ; then
 
 patch <<__EOF__ 
@@ -23,7 +21,7 @@ __EOF__
 
 cp js/src/config/Linux_All.mk js/src/config/`uname -s``uname -r`.mk
 
-pthreadopts=" --with-pthreads=yes"
+ldflags=-lpthread
 fi
 
 if [ $hosttype = "OpenBSD" ] ; then
@@ -41,7 +39,7 @@ if [ $arch = "x86_64" ] ; then
 opts="--enable-64bit"
 fi
 
-cd nsprpub && ./configure $opts $pthreadopts && $MAKE
+cd nsprpub && LDFLAGS=$ldflags ./configure $opts && $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`