freebsd-ports/www/firefox/files/patch-security-coreconf-FreeBSD.mk
Beat Gaetzi d8add7cac4 - Update to 4.0
- Add PGO option to enable Profile-Guided Optimization [1].

PR:		ports/132231 [1] (based on)
Submitted by:	lioux@ [1]
Thanks to:	andreast@, Anonymous <swell.k AT gmail.com>, decke@, jsa@,
		swills@ and all the testers for their feedback!
2011-03-22 15:24:49 +00:00

40 lines
951 B
Makefile

--- security/coreconf/FreeBSD.mk.orig 2010-02-28 23:30:04.000000000 +0000
+++ security/coreconf/FreeBSD.mk 2010-03-03 02:05:22.000000000 +0000
@@ -49,8 +49,20 @@
ifeq ($(CPU_ARCH),pc98)
CPU_ARCH = x86
endif
-ifeq ($(CPU_ARCH),amd64)
-CPU_ARCH = x86_64
+ifeq ($(OS_TEST),alpha)
+CPU_ARCH = alpha
+endif
+ifeq ($(OS_TEST),amd64)
+CPU_ARCH = amd64
+endif
+ifeq ($(OS_TEST),ia64)
+CPU_ARCH = ia64
+endif
+ifeq ($(OS_TEST),powerpc)
+CPU_ARCH = powerpc
+endif
+ifeq ($(OS_TEST),sparc64)
+CPU_ARCH = sparc64
endif
OS_CFLAGS = $(DSO_CFLAGS) -ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
@@ -78,7 +90,7 @@
DLL_SUFFIX = so.1.0
endif
-MKSHLIB = $(CC) $(DSO_LDOPTS)
+MKSHLIB = $(CC) -Wl,-Bsymbolic -lc $(DSO_LDOPTS) -o $@
ifdef MAPFILE
MKSHLIB += -Wl,--version-script,$(MAPFILE)
endif
@@ -87,4 +99,4 @@
G++INCLUDES = -I/usr/include/g++
-INCLUDES += -I/usr/X11R6/include
+#INCLUDES += -I/usr/local/include