mirror of
https://git.freebsd.org/ports.git
synced 2025-06-02 03:16:28 -04:00
along with OpenSSL. Without this, there is a symbol conflict with MD5_Update() which can cause applications such as Evolution 1.5 to crash when Kerberos support is enabled. The longer-term goal is to configure Mozilla's internal NSS to be linked symbolically which should allow us to enable OpenSSL support in gnomevfs2.
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
--- ../coreconf/FreeBSD.mk.orig Wed Mar 26 20:17:25 2003
|
|
+++ ../coreconf/FreeBSD.mk Fri Mar 19 01:23:30 2004
|
|
@@ -35,9 +35,9 @@
|
|
|
|
include $(CORE_DEPTH)/coreconf/UNIX.mk
|
|
|
|
-DEFAULT_COMPILER = gcc
|
|
-CC = gcc
|
|
-CCC = g++
|
|
+DEFAULT_COMPILER = $(CC)
|
|
+CC ?= gcc
|
|
+CCC = $(CXX)
|
|
RANLIB = ranlib
|
|
|
|
ifeq ($(OS_TEST),alpha)
|
|
@@ -47,6 +47,8 @@
|
|
endif
|
|
|
|
OS_CFLAGS = $(DSO_CFLAGS) -ansi -Wall -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
|
|
+OS_LIBS = $(BSD_LDOPTS)
|
|
+OPTIMIZER =
|
|
|
|
DSO_CFLAGS = -fPIC
|
|
DSO_LDOPTS = -shared -Wl,-soname -Wl,$(notdir $@)
|
|
@@ -58,7 +60,7 @@
|
|
USE_PTHREADS = 1
|
|
DEFINES += -D_THREAD_SAFE -D_REENTRANT
|
|
OS_LIBS += -pthread
|
|
-DSO_LDOPTS += -pthread
|
|
+DSO_LDOPTS += $(BSD_LDOPTS)
|
|
endif
|
|
|
|
ARCH = freebsd
|
|
@@ -66,12 +68,12 @@
|
|
MOZ_OBJFORMAT := $(shell test -x /usr/bin/objformat && /usr/bin/objformat || echo aout)
|
|
|
|
ifeq ($(MOZ_OBJFORMAT),elf)
|
|
-DLL_SUFFIX = so
|
|
+DLL_SUFFIX = so.1
|
|
else
|
|
DLL_SUFFIX = so.1.0
|
|
endif
|
|
|
|
-MKSHLIB = $(CC) $(DSO_LDOPTS)
|
|
+MKSHLIB = $(CC) -Wl,-Bsymbolic $(DSO_LDOPTS)
|
|
ifdef MAPFILE
|
|
# Add LD options to restrict exported symbols to those in the map file
|
|
endif
|