mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
76d9aafc91
PR: 50797 Submitted by: Oliver Eikemeier <eikemeier@fillmore-labs.com>
46 lines
955 B
Makefile
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
|