1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/security/nss/files/patch-..::coreconf::FreeBSD.mk
Joe Marcus Clarke 76d9aafc91 Update to 3.8.
PR:	50797
Submitted by:	Oliver Eikemeier <eikemeier@fillmore-labs.com>
2003-04-12 20:58:55 +00:00

46 lines
955 B
Makefile

$FreeBSD$
--- ../coreconf/FreeBSD.mk.orig Thu Mar 27 02:17:25 2003
+++ ../coreconf/FreeBSD.mk Fri Apr 11 00:53:38 2003
@@ -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,7 +68,7 @@
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