2006-10-01 12:06:16 -04:00
|
|
|
hosttype=`uname -s`
|
|
|
|
|
2006-10-01 12:26:20 -04:00
|
|
|
pthreadopts=""
|
|
|
|
|
2006-10-01 12:06:16 -04:00
|
|
|
if [ $hosttype = "FreeBSD" ] ; then
|
|
|
|
|
|
|
|
patch <<__EOF__
|
|
|
|
--- nsprpub/pr/include/md/_freebsd.h.orig Sat Sep 30 22:19:12 2006
|
|
|
|
+++ nsprpub/pr/include/md/_freebsd.h Sat Sep 30 22:23:16 2006
|
|
|
|
@@ -106,6 +106,11 @@
|
|
|
|
#define _PR_IPV6_V6ONLY_PROBE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#if __FreeBSD_version >= 601103
|
|
|
|
+#define _PR_HAVE_GETPROTO_R
|
|
|
|
+#define _PR_HAVE_5_ARG_GETPROTO_R
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#define USE_SETJMP
|
|
|
|
|
|
|
|
#ifndef _PR_PTHREADS
|
|
|
|
__EOF__
|
|
|
|
|
|
|
|
cp js/src/config/Linux_All.mk js/src/config/`uname -s``uname -r`.mk
|
|
|
|
|
2006-10-01 12:26:20 -04:00
|
|
|
pthreadopts=" --with-pthreads=yes"
|
2006-10-01 12:06:16 -04:00
|
|
|
fi
|
|
|
|
|
2006-03-21 12:08:54 -05:00
|
|
|
arch=`uname -m`
|
|
|
|
|
|
|
|
opts=""
|
|
|
|
if [ $arch = "x86_64" ] ; then
|
|
|
|
opts="--enable-64bit"
|
|
|
|
fi
|
|
|
|
|
2006-10-01 12:26:20 -04:00
|
|
|
cd nsprpub && ./configure $opts $pthreadopts && $MAKE
|
2006-03-21 12:08:54 -05:00
|
|
|
|
2006-08-21 20:56:27 -04:00
|
|
|
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`
|
2006-02-26 18:10:22 -05:00
|
|
|
|