1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/www/seamonkey/files/patch-mi
Jeremy Lea cd3604440e 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.
2000-12-21 19:40:44 +00:00

36 lines
953 B
Plaintext

--- nsprpub/config/FreeBSD.mk.orig Wed Oct 20 14:19:53 1999
+++ 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}
+
+# During FreeBSD port build, CFLAGS contains all of the optimizations
+# flags desired...
+OPTIMIZER =
ifeq ($(OS_TEST),alpha)
CPU_ARCH = alpha
else
-OS_REL_CFLAGS = -Di386
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