mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Fix after objformat removal
This commit is contained in:
parent
b0233b4569
commit
2dda6e32a7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=183727
1 changed files with 23 additions and 16 deletions
|
@ -1,6 +1,7 @@
|
||||||
--- ../coreconf/FreeBSD.mk Fri Sep 16 13:09:23 2005
|
--- ../coreconf/FreeBSD.mk.orig Sat Jan 21 03:36:11 2006
|
||||||
+++ ../coreconf/FreeBSD.mk Wed Jan 18 18:30:48 2006
|
+++ ../coreconf/FreeBSD.mk Tue Jan 30 21:13:41 2007
|
||||||
@@ -38,7 +38,7 @@
|
@@ -37,9 +37,9 @@
|
||||||
|
|
||||||
include $(CORE_DEPTH)/coreconf/UNIX.mk
|
include $(CORE_DEPTH)/coreconf/UNIX.mk
|
||||||
|
|
||||||
-DEFAULT_COMPILER = gcc
|
-DEFAULT_COMPILER = gcc
|
||||||
|
@ -11,7 +12,9 @@
|
||||||
+CCC = $(CXX)
|
+CCC = $(CXX)
|
||||||
RANLIB = ranlib
|
RANLIB = ranlib
|
||||||
|
|
||||||
@@ -50,6 +50,12 @@
|
ifeq ($(OS_TEST),alpha)
|
||||||
|
@@ -49,8 +49,14 @@
|
||||||
|
endif
|
||||||
|
|
||||||
OS_CFLAGS = $(DSO_CFLAGS) -ansi -Wall -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
|
OS_CFLAGS = $(DSO_CFLAGS) -ansi -Wall -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
|
||||||
+OS_LIBS = $(BSD_LDOPTS)
|
+OS_LIBS = $(BSD_LDOPTS)
|
||||||
|
@ -24,31 +27,35 @@
|
||||||
+endif
|
+endif
|
||||||
DSO_LDOPTS = -shared -Wl,-soname -Wl,$(notdir $@)
|
DSO_LDOPTS = -shared -Wl,-soname -Wl,$(notdir $@)
|
||||||
|
|
||||||
@@ -61,5 +67,5 @@
|
#
|
||||||
|
@@ -60,20 +66,18 @@
|
||||||
|
USE_PTHREADS = 1
|
||||||
DEFINES += -D_THREAD_SAFE -D_REENTRANT
|
DEFINES += -D_THREAD_SAFE -D_REENTRANT
|
||||||
OS_LIBS += -pthread
|
OS_LIBS += -pthread
|
||||||
-DSO_LDOPTS += -pthread
|
-DSO_LDOPTS += -pthread
|
||||||
+DSO_LDOPTS += $(BSD_LDOPTS)
|
+DSO_LDOPTS += $(BSD_LDOPTS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -69,10 +75,14 @@
|
ARCH = freebsd
|
||||||
|
|
||||||
ifeq ($(MOZ_OBJFORMAT),elf)
|
-MOZ_OBJFORMAT := $(shell test -x /usr/bin/objformat && /usr/bin/objformat || echo aout)
|
||||||
-DLL_SUFFIX = so
|
|
||||||
+DLL_SUFFIX = so.1
|
+DLL_SUFFIX = so.1
|
||||||
else
|
|
||||||
DLL_SUFFIX = so.1.0
|
|
||||||
endif
|
|
||||||
|
|
||||||
-MKSHLIB = $(CC) $(DSO_LDOPTS)
|
-ifeq ($(MOZ_OBJFORMAT),elf)
|
||||||
|
-DLL_SUFFIX = so
|
||||||
+ifneq (,$(filter alpha ia64,$(OS_TEST)))
|
+ifneq (,$(filter alpha ia64,$(OS_TEST)))
|
||||||
+MKSHLIB = $(CC) -Wl,-Bsymbolic -lc $(DSO_LDOPTS)
|
+MKSHLIB = $(CC) -Wl,-Bsymbolic -lc $(DSO_LDOPTS)
|
||||||
+else
|
else
|
||||||
|
-DLL_SUFFIX = so.1.0
|
||||||
+MKSHLIB = $(CC) -Wl,-Bsymbolic $(DSO_LDOPTS)
|
+MKSHLIB = $(CC) -Wl,-Bsymbolic $(DSO_LDOPTS)
|
||||||
+endif
|
endif
|
||||||
|
-
|
||||||
|
-MKSHLIB = $(CC) $(DSO_LDOPTS)
|
||||||
ifdef MAPFILE
|
ifdef MAPFILE
|
||||||
# Add LD options to restrict exported symbols to those in the map file
|
MKSHLIB += -Wl,--version-script,$(MAPFILE)
|
||||||
@@ -84,2 +94,4 @@
|
endif
|
||||||
|
@@ -83,3 +87,5 @@
|
||||||
|
G++INCLUDES = -I/usr/include/g++
|
||||||
|
|
||||||
INCLUDES += -I/usr/X11R6/include
|
INCLUDES += -I/usr/X11R6/include
|
||||||
+USE_SYSTEM_ZLIB = 1
|
+USE_SYSTEM_ZLIB = 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue