summaryrefslogtreecommitdiff
path: root/www/seamonkey2/files/patch-nsprpub::configure
diff options
context:
space:
mode:
authorJeremy Lea <reg@FreeBSD.org>2002-02-15 18:44:15 +0000
committerJeremy Lea <reg@FreeBSD.org>2002-02-15 18:44:15 +0000
commit6976db798b4b6515232efb9400018053cc2d2101 (patch)
tree71663c5e28622b0013a098c6ff269d888e3ce9d7 /www/seamonkey2/files/patch-nsprpub::configure
parentUpdate to 1.0.7.2 (diff)
Clean up this port, including GCing old configure options and making patches
more acceptable to mozilla.org. Hopefully these will make it into 0.9.9. Add a hack to minimise the number of files extracted. Merge in the patches from the mozilla+ipv6 port. Submitted by: sumikawa (mozilla+ipv6)
Notes
Notes: svn path=/head/; revision=54761
Diffstat (limited to 'www/seamonkey2/files/patch-nsprpub::configure')
-rw-r--r--www/seamonkey2/files/patch-nsprpub::configure50
1 files changed, 50 insertions, 0 deletions
diff --git a/www/seamonkey2/files/patch-nsprpub::configure b/www/seamonkey2/files/patch-nsprpub::configure
new file mode 100644
index 000000000000..b008097bf949
--- /dev/null
+++ b/www/seamonkey2/files/patch-nsprpub::configure
@@ -0,0 +1,50 @@
+--- nsprpub/configure.orig Tue Jan 22 23:57:37 2002
++++ nsprpub/configure Thu Feb 14 01:13:13 2002
+@@ -3288,8 +3288,9 @@
+ else
+ DLL_SUFFIX=so.1.0
+ fi
++ MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
+ DSO_CFLAGS=-fPIC
+- DSO_LDOPTS=-Bshareable
++ DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
+ MDCPUCFG_H=_freebsd.cfg
+ PR_MD_CSRCS=freebsd.c
+ ;;
+@@ -5091,8 +5092,15 @@
+ if test $? -eq 0; then
+ if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
+ ac_cv_have_dash_pthread=yes
+- CFLAGS="$CFLAGS -pthread"
+- CXXFLAGS="$CXXFLAGS -pthread"
++ case "$target_os" in
++ freebsd*)
++# Freebsd doesn't use -pthread for compiles, it uses them for linking
++ ;;
++ *)
++ CFLAGS="$CFLAGS -pthread"
++ CXXFLAGS="$CXXFLAGS -pthread"
++ ;;
++ esac
+ fi
+ fi
+ rm -f conftest*
+@@ -5123,11 +5131,17 @@
+ ;;
+ *-freebsd*|*-openbsd*|*-bsdi*|*-netbsd*)
+ cat >> confdefs.h <<\EOF
++#define _REENTRANT 1
++EOF
++
++ cat >> confdefs.h <<\EOF
+ #define _THREAD_SAFE 1
+ EOF
+
+ if test "$ac_cv_have_dash_pthread" = "yes"; then
+- _PTHREAD_LDFLAGS=
++ _PTHREAD_LDFLAGS="-pthread"
++ else
++ _PTHREAD_LDFLAGS="-lc_r"
+ fi
+ ;;
+ *-linux*)