summaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorreg <reg@FreeBSD.org>2000-12-21 19:40:44 +0000
committerreg <reg@FreeBSD.org>2000-12-21 19:40:44 +0000
commitb1d46a5dc5b8919dca6008339364cc28a29d57c8 (patch)
treef6de3c0fd2938dcfe9f7150f0a1b36c65a9fb492 /www
parentd4f034e7df36091a3241f4bbff4d31b70b71664e (diff)
downloadFreeBSD-ports-b1d46a5dc5b8919dca6008339364cc28a29d57c8.zip
FreeBSD-ports-b1d46a5dc5b8919dca6008339364cc28a29d57c8.tar.gz
Explictly link against libgcc_r, to work around bugs in 4.2-RELEASE onwards
and -CURRENT. I'm still not sure why the bug was exposed only recently, but it is due to libstdc++ being linked without the -nostdlib option (causing it to be statically linked against libgcc even for the threaded case). Thanks to Andrew Bliznak <andrew@ort.lviv.net> for testing this.
Diffstat (limited to 'www')
-rw-r--r--www/mozilla-devel/Makefile2
-rw-r--r--www/mozilla-devel/files/patch-an11
-rw-r--r--www/mozilla-devel/files/patch-mi19
-rw-r--r--www/mozilla-devel/files/patch-qt34
-rw-r--r--www/mozilla-vendor/Makefile2
-rw-r--r--www/mozilla-vendor/files/patch-an11
-rw-r--r--www/mozilla-vendor/files/patch-mi19
-rw-r--r--www/mozilla-vendor/files/patch-qt34
-rw-r--r--www/mozilla/Makefile2
-rw-r--r--www/mozilla/files/patch-an11
-rw-r--r--www/mozilla/files/patch-mi19
-rw-r--r--www/mozilla/files/patch-qt34
-rw-r--r--www/seamonkey/Makefile2
-rw-r--r--www/seamonkey/files/patch-an11
-rw-r--r--www/seamonkey/files/patch-mi19
-rw-r--r--www/seamonkey/files/patch-qt34
-rw-r--r--www/seamonkey2/Makefile2
-rw-r--r--www/seamonkey2/files/patch-an11
-rw-r--r--www/seamonkey2/files/patch-mi19
-rw-r--r--www/seamonkey2/files/patch-qt34
20 files changed, 270 insertions, 60 deletions
diff --git a/www/mozilla-devel/Makefile b/www/mozilla-devel/Makefile
index 0d7e8dd..7fc6362 100644
--- a/www/mozilla-devel/Makefile
+++ b/www/mozilla-devel/Makefile
@@ -49,7 +49,7 @@ CONFIGURE_ARGS= \
--with-jpeg=${LOCALBASE} \
--with-png=${LOCALBASE}
MAKE_ENV= LD_LIBRARY_PATH=${WRKSRC}/dist/bin \
- CC_ONLY_FLAGS="${FLAGS}" CCC_ONLY_FLAGS="${CXXFLAGS}"
+ CC_ONLY_FLAGS="${CFLAGS}" CCC_ONLY_FLAGS="${CXXFLAGS}"
post-build:
@${SED} -e "s;@PREFIX@;${PREFIX};g" \
diff --git a/www/mozilla-devel/files/patch-an b/www/mozilla-devel/files/patch-an
new file mode 100644
index 0000000..2904080
--- /dev/null
+++ b/www/mozilla-devel/files/patch-an
@@ -0,0 +1,11 @@
+--- js/src/Makefile.in.orig Thu Dec 21 01:23:12 2000
++++ js/src/Makefile.in Thu Dec 21 01:23:22 2000
+@@ -218,7 +218,7 @@
+ endif
+
+ ifeq ($(OS_ARCH),FreeBSD)
+-LDFLAGS += -pthread
++LDFLAGS += -pthread -lgcc_r
+ endif
+ ifeq ($(OS_ARCH),IRIX)
+ ifdef USE_N32
diff --git a/www/mozilla-devel/files/patch-mi b/www/mozilla-devel/files/patch-mi
index 80768e2..b9b9c14 100644
--- a/www/mozilla-devel/files/patch-mi
+++ b/www/mozilla-devel/files/patch-mi
@@ -1,13 +1,13 @@
--- nsprpub/config/FreeBSD.mk.orig Wed Oct 20 14:19:53 1999
-+++ nsprpub/config/FreeBSD.mk Thu Feb 3 03:48:20 2000
-@@ -21,14 +21,16 @@
++++ nsprpub/config/FreeBSD.mk Thu Dec 21 01:16:34 2000
+@@ -21,24 +21,26 @@
include $(MOD_DEPTH)/config/UNIX.mk
-CC = gcc
-CCC = g++
RANLIB = ranlib
-+CCC = ${CXX}
++CCC = ${CXX}
+
+# During FreeBSD port build, CFLAGS contains all of the optimizations
+# flags desired...
@@ -20,3 +20,16 @@
CPU_ARCH = x86
endif
CPU_ARCH_TAG = _$(CPU_ARCH)
+
+-OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe $(THREAD_FLAG) -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
++OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
+
+ ifeq ($(USE_PTHREADS),1)
+ IMPL_STRATEGY = _PTH
+-DEFINES += -D_THREAD_SAFE
+-THREAD_FLAG += -pthread
++DEFINES += -D_THREAD_SAFE -D_REENTRANT
++DSO_LDOPTS += -pthread -lgcc_r
+ else
+ IMPL_STRATEGY = _EMU
+ DEFINES += -D_PR_LOCAL_THREADS_ONLY
diff --git a/www/mozilla-devel/files/patch-qt b/www/mozilla-devel/files/patch-qt
index b7964a4..361bf6c 100644
--- a/www/mozilla-devel/files/patch-qt
+++ b/www/mozilla-devel/files/patch-qt
@@ -1,21 +1,39 @@
---- configure.orig Thu Apr 13 19:18:25 2000
-+++ configure Thu Apr 20 09:07:57 2000
-@@ -5618,7 +5618,7 @@
+--- configure.orig Sat Sep 30 23:16:14 2000
++++ configure Thu Dec 21 00:49:23 2000
+@@ -5786,7 +5786,7 @@
echo $ac_n "checking for Qt insanity""... $ac_c" 1>&6
- echo "configure:5620: checking for Qt insanity" >&5
+ echo "configure:5788: checking for Qt insanity" >&5
- QT_CFLAGS="-I${QTDIR}/include/qt"
+ QT_CFLAGS="-I${QTDIR}/include/X11/qt"
QT_LIBS="-L/usr/X11R6/lib -L${QTDIR}/lib -lqt -lXext -lX11"
# Check whether --with-static-qt or --without-static-qt was given.
-@@ -7108,6 +7108,9 @@
- case "$target_os" in
+@@ -7702,6 +7702,9 @@
os2*)
LIBS=
-+ ;;
+ ;;
+freebsd*)
+ CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}"
- ;;
++ ;;
esac
for ac_hdr in sys/byteorder.h compat.h getopt.h
+ do
+@@ -8655,8 +8658,6 @@
+ 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"
+ fi
+ fi
+ rm -f conftest*
+@@ -8672,7 +8673,7 @@
+ EOF
+
+ if test "$ac_cv_have_dash_pthread" = "yes"; then
+- _PTHREAD_LDFLAGS=""
++ _PTHREAD_LDFLAGS="-pthread -lgcc_r"
+ else
+ _PTHREAD_LDFLAGS="-lc_r"
+ fi
diff --git a/www/mozilla-vendor/Makefile b/www/mozilla-vendor/Makefile
index 0d7e8dd..7fc6362 100644
--- a/www/mozilla-vendor/Makefile
+++ b/www/mozilla-vendor/Makefile
@@ -49,7 +49,7 @@ CONFIGURE_ARGS= \
--with-jpeg=${LOCALBASE} \
--with-png=${LOCALBASE}
MAKE_ENV= LD_LIBRARY_PATH=${WRKSRC}/dist/bin \
- CC_ONLY_FLAGS="${FLAGS}" CCC_ONLY_FLAGS="${CXXFLAGS}"
+ CC_ONLY_FLAGS="${CFLAGS}" CCC_ONLY_FLAGS="${CXXFLAGS}"
post-build:
@${SED} -e "s;@PREFIX@;${PREFIX};g" \
diff --git a/www/mozilla-vendor/files/patch-an b/www/mozilla-vendor/files/patch-an
new file mode 100644
index 0000000..2904080
--- /dev/null
+++ b/www/mozilla-vendor/files/patch-an
@@ -0,0 +1,11 @@
+--- js/src/Makefile.in.orig Thu Dec 21 01:23:12 2000
++++ js/src/Makefile.in Thu Dec 21 01:23:22 2000
+@@ -218,7 +218,7 @@
+ endif
+
+ ifeq ($(OS_ARCH),FreeBSD)
+-LDFLAGS += -pthread
++LDFLAGS += -pthread -lgcc_r
+ endif
+ ifeq ($(OS_ARCH),IRIX)
+ ifdef USE_N32
diff --git a/www/mozilla-vendor/files/patch-mi b/www/mozilla-vendor/files/patch-mi
index 80768e2..b9b9c14 100644
--- a/www/mozilla-vendor/files/patch-mi
+++ b/www/mozilla-vendor/files/patch-mi
@@ -1,13 +1,13 @@
--- nsprpub/config/FreeBSD.mk.orig Wed Oct 20 14:19:53 1999
-+++ nsprpub/config/FreeBSD.mk Thu Feb 3 03:48:20 2000
-@@ -21,14 +21,16 @@
++++ nsprpub/config/FreeBSD.mk Thu Dec 21 01:16:34 2000
+@@ -21,24 +21,26 @@
include $(MOD_DEPTH)/config/UNIX.mk
-CC = gcc
-CCC = g++
RANLIB = ranlib
-+CCC = ${CXX}
++CCC = ${CXX}
+
+# During FreeBSD port build, CFLAGS contains all of the optimizations
+# flags desired...
@@ -20,3 +20,16 @@
CPU_ARCH = x86
endif
CPU_ARCH_TAG = _$(CPU_ARCH)
+
+-OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe $(THREAD_FLAG) -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
++OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
+
+ ifeq ($(USE_PTHREADS),1)
+ IMPL_STRATEGY = _PTH
+-DEFINES += -D_THREAD_SAFE
+-THREAD_FLAG += -pthread
++DEFINES += -D_THREAD_SAFE -D_REENTRANT
++DSO_LDOPTS += -pthread -lgcc_r
+ else
+ IMPL_STRATEGY = _EMU
+ DEFINES += -D_PR_LOCAL_THREADS_ONLY
diff --git a/www/mozilla-vendor/files/patch-qt b/www/mozilla-vendor/files/patch-qt
index b7964a4..361bf6c 100644
--- a/www/mozilla-vendor/files/patch-qt
+++ b/www/mozilla-vendor/files/patch-qt
@@ -1,21 +1,39 @@
---- configure.orig Thu Apr 13 19:18:25 2000
-+++ configure Thu Apr 20 09:07:57 2000
-@@ -5618,7 +5618,7 @@
+--- configure.orig Sat Sep 30 23:16:14 2000
++++ configure Thu Dec 21 00:49:23 2000
+@@ -5786,7 +5786,7 @@
echo $ac_n "checking for Qt insanity""... $ac_c" 1>&6
- echo "configure:5620: checking for Qt insanity" >&5
+ echo "configure:5788: checking for Qt insanity" >&5
- QT_CFLAGS="-I${QTDIR}/include/qt"
+ QT_CFLAGS="-I${QTDIR}/include/X11/qt"
QT_LIBS="-L/usr/X11R6/lib -L${QTDIR}/lib -lqt -lXext -lX11"
# Check whether --with-static-qt or --without-static-qt was given.
-@@ -7108,6 +7108,9 @@
- case "$target_os" in
+@@ -7702,6 +7702,9 @@
os2*)
LIBS=
-+ ;;
+ ;;
+freebsd*)
+ CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}"
- ;;
++ ;;
esac
for ac_hdr in sys/byteorder.h compat.h getopt.h
+ do
+@@ -8655,8 +8658,6 @@
+ 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"
+ fi
+ fi
+ rm -f conftest*
+@@ -8672,7 +8673,7 @@
+ EOF
+
+ if test "$ac_cv_have_dash_pthread" = "yes"; then
+- _PTHREAD_LDFLAGS=""
++ _PTHREAD_LDFLAGS="-pthread -lgcc_r"
+ else
+ _PTHREAD_LDFLAGS="-lc_r"
+ fi
diff --git a/www/mozilla/Makefile b/www/mozilla/Makefile
index 0d7e8dd..7fc6362 100644
--- a/www/mozilla/Makefile
+++ b/www/mozilla/Makefile
@@ -49,7 +49,7 @@ CONFIGURE_ARGS= \
--with-jpeg=${LOCALBASE} \
--with-png=${LOCALBASE}
MAKE_ENV= LD_LIBRARY_PATH=${WRKSRC}/dist/bin \
- CC_ONLY_FLAGS="${FLAGS}" CCC_ONLY_FLAGS="${CXXFLAGS}"
+ CC_ONLY_FLAGS="${CFLAGS}" CCC_ONLY_FLAGS="${CXXFLAGS}"
post-build:
@${SED} -e "s;@PREFIX@;${PREFIX};g" \
diff --git a/www/mozilla/files/patch-an b/www/mozilla/files/patch-an
new file mode 100644
index 0000000..2904080
--- /dev/null
+++ b/www/mozilla/files/patch-an
@@ -0,0 +1,11 @@
+--- js/src/Makefile.in.orig Thu Dec 21 01:23:12 2000
++++ js/src/Makefile.in Thu Dec 21 01:23:22 2000
+@@ -218,7 +218,7 @@
+ endif
+
+ ifeq ($(OS_ARCH),FreeBSD)
+-LDFLAGS += -pthread
++LDFLAGS += -pthread -lgcc_r
+ endif
+ ifeq ($(OS_ARCH),IRIX)
+ ifdef USE_N32
diff --git a/www/mozilla/files/patch-mi b/www/mozilla/files/patch-mi
index 80768e2..b9b9c14 100644
--- a/www/mozilla/files/patch-mi
+++ b/www/mozilla/files/patch-mi
@@ -1,13 +1,13 @@
--- nsprpub/config/FreeBSD.mk.orig Wed Oct 20 14:19:53 1999
-+++ nsprpub/config/FreeBSD.mk Thu Feb 3 03:48:20 2000
-@@ -21,14 +21,16 @@
++++ nsprpub/config/FreeBSD.mk Thu Dec 21 01:16:34 2000
+@@ -21,24 +21,26 @@
include $(MOD_DEPTH)/config/UNIX.mk
-CC = gcc
-CCC = g++
RANLIB = ranlib
-+CCC = ${CXX}
++CCC = ${CXX}
+
+# During FreeBSD port build, CFLAGS contains all of the optimizations
+# flags desired...
@@ -20,3 +20,16 @@
CPU_ARCH = x86
endif
CPU_ARCH_TAG = _$(CPU_ARCH)
+
+-OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe $(THREAD_FLAG) -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
++OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
+
+ ifeq ($(USE_PTHREADS),1)
+ IMPL_STRATEGY = _PTH
+-DEFINES += -D_THREAD_SAFE
+-THREAD_FLAG += -pthread
++DEFINES += -D_THREAD_SAFE -D_REENTRANT
++DSO_LDOPTS += -pthread -lgcc_r
+ else
+ IMPL_STRATEGY = _EMU
+ DEFINES += -D_PR_LOCAL_THREADS_ONLY
diff --git a/www/mozilla/files/patch-qt b/www/mozilla/files/patch-qt
index b7964a4..361bf6c 100644
--- a/www/mozilla/files/patch-qt
+++ b/www/mozilla/files/patch-qt
@@ -1,21 +1,39 @@
---- configure.orig Thu Apr 13 19:18:25 2000
-+++ configure Thu Apr 20 09:07:57 2000
-@@ -5618,7 +5618,7 @@
+--- configure.orig Sat Sep 30 23:16:14 2000
++++ configure Thu Dec 21 00:49:23 2000
+@@ -5786,7 +5786,7 @@
echo $ac_n "checking for Qt insanity""... $ac_c" 1>&6
- echo "configure:5620: checking for Qt insanity" >&5
+ echo "configure:5788: checking for Qt insanity" >&5
- QT_CFLAGS="-I${QTDIR}/include/qt"
+ QT_CFLAGS="-I${QTDIR}/include/X11/qt"
QT_LIBS="-L/usr/X11R6/lib -L${QTDIR}/lib -lqt -lXext -lX11"
# Check whether --with-static-qt or --without-static-qt was given.
-@@ -7108,6 +7108,9 @@
- case "$target_os" in
+@@ -7702,6 +7702,9 @@
os2*)
LIBS=
-+ ;;
+ ;;
+freebsd*)
+ CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}"
- ;;
++ ;;
esac
for ac_hdr in sys/byteorder.h compat.h getopt.h
+ do
+@@ -8655,8 +8658,6 @@
+ 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"
+ fi
+ fi
+ rm -f conftest*
+@@ -8672,7 +8673,7 @@
+ EOF
+
+ if test "$ac_cv_have_dash_pthread" = "yes"; then
+- _PTHREAD_LDFLAGS=""
++ _PTHREAD_LDFLAGS="-pthread -lgcc_r"
+ else
+ _PTHREAD_LDFLAGS="-lc_r"
+ fi
diff --git a/www/seamonkey/Makefile b/www/seamonkey/Makefile
index 0d7e8dd..7fc6362 100644
--- a/www/seamonkey/Makefile
+++ b/www/seamonkey/Makefile
@@ -49,7 +49,7 @@ CONFIGURE_ARGS= \
--with-jpeg=${LOCALBASE} \
--with-png=${LOCALBASE}
MAKE_ENV= LD_LIBRARY_PATH=${WRKSRC}/dist/bin \
- CC_ONLY_FLAGS="${FLAGS}" CCC_ONLY_FLAGS="${CXXFLAGS}"
+ CC_ONLY_FLAGS="${CFLAGS}" CCC_ONLY_FLAGS="${CXXFLAGS}"
post-build:
@${SED} -e "s;@PREFIX@;${PREFIX};g" \
diff --git a/www/seamonkey/files/patch-an b/www/seamonkey/files/patch-an
new file mode 100644
index 0000000..2904080
--- /dev/null
+++ b/www/seamonkey/files/patch-an
@@ -0,0 +1,11 @@
+--- js/src/Makefile.in.orig Thu Dec 21 01:23:12 2000
++++ js/src/Makefile.in Thu Dec 21 01:23:22 2000
+@@ -218,7 +218,7 @@
+ endif
+
+ ifeq ($(OS_ARCH),FreeBSD)
+-LDFLAGS += -pthread
++LDFLAGS += -pthread -lgcc_r
+ endif
+ ifeq ($(OS_ARCH),IRIX)
+ ifdef USE_N32
diff --git a/www/seamonkey/files/patch-mi b/www/seamonkey/files/patch-mi
index 80768e2..b9b9c14 100644
--- a/www/seamonkey/files/patch-mi
+++ b/www/seamonkey/files/patch-mi
@@ -1,13 +1,13 @@
--- nsprpub/config/FreeBSD.mk.orig Wed Oct 20 14:19:53 1999
-+++ nsprpub/config/FreeBSD.mk Thu Feb 3 03:48:20 2000
-@@ -21,14 +21,16 @@
++++ nsprpub/config/FreeBSD.mk Thu Dec 21 01:16:34 2000
+@@ -21,24 +21,26 @@
include $(MOD_DEPTH)/config/UNIX.mk
-CC = gcc
-CCC = g++
RANLIB = ranlib
-+CCC = ${CXX}
++CCC = ${CXX}
+
+# During FreeBSD port build, CFLAGS contains all of the optimizations
+# flags desired...
@@ -20,3 +20,16 @@
CPU_ARCH = x86
endif
CPU_ARCH_TAG = _$(CPU_ARCH)
+
+-OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe $(THREAD_FLAG) -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
++OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
+
+ ifeq ($(USE_PTHREADS),1)
+ IMPL_STRATEGY = _PTH
+-DEFINES += -D_THREAD_SAFE
+-THREAD_FLAG += -pthread
++DEFINES += -D_THREAD_SAFE -D_REENTRANT
++DSO_LDOPTS += -pthread -lgcc_r
+ else
+ IMPL_STRATEGY = _EMU
+ DEFINES += -D_PR_LOCAL_THREADS_ONLY
diff --git a/www/seamonkey/files/patch-qt b/www/seamonkey/files/patch-qt
index b7964a4..361bf6c 100644
--- a/www/seamonkey/files/patch-qt
+++ b/www/seamonkey/files/patch-qt
@@ -1,21 +1,39 @@
---- configure.orig Thu Apr 13 19:18:25 2000
-+++ configure Thu Apr 20 09:07:57 2000
-@@ -5618,7 +5618,7 @@
+--- configure.orig Sat Sep 30 23:16:14 2000
++++ configure Thu Dec 21 00:49:23 2000
+@@ -5786,7 +5786,7 @@
echo $ac_n "checking for Qt insanity""... $ac_c" 1>&6
- echo "configure:5620: checking for Qt insanity" >&5
+ echo "configure:5788: checking for Qt insanity" >&5
- QT_CFLAGS="-I${QTDIR}/include/qt"
+ QT_CFLAGS="-I${QTDIR}/include/X11/qt"
QT_LIBS="-L/usr/X11R6/lib -L${QTDIR}/lib -lqt -lXext -lX11"
# Check whether --with-static-qt or --without-static-qt was given.
-@@ -7108,6 +7108,9 @@
- case "$target_os" in
+@@ -7702,6 +7702,9 @@
os2*)
LIBS=
-+ ;;
+ ;;
+freebsd*)
+ CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}"
- ;;
++ ;;
esac
for ac_hdr in sys/byteorder.h compat.h getopt.h
+ do
+@@ -8655,8 +8658,6 @@
+ 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"
+ fi
+ fi
+ rm -f conftest*
+@@ -8672,7 +8673,7 @@
+ EOF
+
+ if test "$ac_cv_have_dash_pthread" = "yes"; then
+- _PTHREAD_LDFLAGS=""
++ _PTHREAD_LDFLAGS="-pthread -lgcc_r"
+ else
+ _PTHREAD_LDFLAGS="-lc_r"
+ fi
diff --git a/www/seamonkey2/Makefile b/www/seamonkey2/Makefile
index 0d7e8dd..7fc6362 100644
--- a/www/seamonkey2/Makefile
+++ b/www/seamonkey2/Makefile
@@ -49,7 +49,7 @@ CONFIGURE_ARGS= \
--with-jpeg=${LOCALBASE} \
--with-png=${LOCALBASE}
MAKE_ENV= LD_LIBRARY_PATH=${WRKSRC}/dist/bin \
- CC_ONLY_FLAGS="${FLAGS}" CCC_ONLY_FLAGS="${CXXFLAGS}"
+ CC_ONLY_FLAGS="${CFLAGS}" CCC_ONLY_FLAGS="${CXXFLAGS}"
post-build:
@${SED} -e "s;@PREFIX@;${PREFIX};g" \
diff --git a/www/seamonkey2/files/patch-an b/www/seamonkey2/files/patch-an
new file mode 100644
index 0000000..2904080
--- /dev/null
+++ b/www/seamonkey2/files/patch-an
@@ -0,0 +1,11 @@
+--- js/src/Makefile.in.orig Thu Dec 21 01:23:12 2000
++++ js/src/Makefile.in Thu Dec 21 01:23:22 2000
+@@ -218,7 +218,7 @@
+ endif
+
+ ifeq ($(OS_ARCH),FreeBSD)
+-LDFLAGS += -pthread
++LDFLAGS += -pthread -lgcc_r
+ endif
+ ifeq ($(OS_ARCH),IRIX)
+ ifdef USE_N32
diff --git a/www/seamonkey2/files/patch-mi b/www/seamonkey2/files/patch-mi
index 80768e2..b9b9c14 100644
--- a/www/seamonkey2/files/patch-mi
+++ b/www/seamonkey2/files/patch-mi
@@ -1,13 +1,13 @@
--- nsprpub/config/FreeBSD.mk.orig Wed Oct 20 14:19:53 1999
-+++ nsprpub/config/FreeBSD.mk Thu Feb 3 03:48:20 2000
-@@ -21,14 +21,16 @@
++++ nsprpub/config/FreeBSD.mk Thu Dec 21 01:16:34 2000
+@@ -21,24 +21,26 @@
include $(MOD_DEPTH)/config/UNIX.mk
-CC = gcc
-CCC = g++
RANLIB = ranlib
-+CCC = ${CXX}
++CCC = ${CXX}
+
+# During FreeBSD port build, CFLAGS contains all of the optimizations
+# flags desired...
@@ -20,3 +20,16 @@
CPU_ARCH = x86
endif
CPU_ARCH_TAG = _$(CPU_ARCH)
+
+-OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe $(THREAD_FLAG) -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
++OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
+
+ ifeq ($(USE_PTHREADS),1)
+ IMPL_STRATEGY = _PTH
+-DEFINES += -D_THREAD_SAFE
+-THREAD_FLAG += -pthread
++DEFINES += -D_THREAD_SAFE -D_REENTRANT
++DSO_LDOPTS += -pthread -lgcc_r
+ else
+ IMPL_STRATEGY = _EMU
+ DEFINES += -D_PR_LOCAL_THREADS_ONLY
diff --git a/www/seamonkey2/files/patch-qt b/www/seamonkey2/files/patch-qt
index b7964a4..361bf6c 100644
--- a/www/seamonkey2/files/patch-qt
+++ b/www/seamonkey2/files/patch-qt
@@ -1,21 +1,39 @@
---- configure.orig Thu Apr 13 19:18:25 2000
-+++ configure Thu Apr 20 09:07:57 2000
-@@ -5618,7 +5618,7 @@
+--- configure.orig Sat Sep 30 23:16:14 2000
++++ configure Thu Dec 21 00:49:23 2000
+@@ -5786,7 +5786,7 @@
echo $ac_n "checking for Qt insanity""... $ac_c" 1>&6
- echo "configure:5620: checking for Qt insanity" >&5
+ echo "configure:5788: checking for Qt insanity" >&5
- QT_CFLAGS="-I${QTDIR}/include/qt"
+ QT_CFLAGS="-I${QTDIR}/include/X11/qt"
QT_LIBS="-L/usr/X11R6/lib -L${QTDIR}/lib -lqt -lXext -lX11"
# Check whether --with-static-qt or --without-static-qt was given.
-@@ -7108,6 +7108,9 @@
- case "$target_os" in
+@@ -7702,6 +7702,9 @@
os2*)
LIBS=
-+ ;;
+ ;;
+freebsd*)
+ CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}"
- ;;
++ ;;
esac
for ac_hdr in sys/byteorder.h compat.h getopt.h
+ do
+@@ -8655,8 +8658,6 @@
+ 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"
+ fi
+ fi
+ rm -f conftest*
+@@ -8672,7 +8673,7 @@
+ EOF
+
+ if test "$ac_cv_have_dash_pthread" = "yes"; then
+- _PTHREAD_LDFLAGS=""
++ _PTHREAD_LDFLAGS="-pthread -lgcc_r"
+ else
+ _PTHREAD_LDFLAGS="-lc_r"
+ fi
OpenPOWER on IntegriCloud