summaryrefslogtreecommitdiff
path: root/nss
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-10-15 08:06:53 +0300
committerTor Lillqvist <tml@iki.fi>2012-10-15 08:06:53 +0300
commit6885fc51b93ee94197aae5e9ae4e9be503bc9903 (patch)
tree814c54a70777284bb77fa26f5d477c2c6f8c31ac /nss
parentaa7500f2231c383e4fd49e94757faccacdde1185 (diff)
Ccache doesn't like several -arch flags
So make sure just one is passed to the compiler. Change-Id: I217b7ac34ba20e35a23c18df6b497919061ca44c
Diffstat (limited to 'nss')
-rw-r--r--nss/nss.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/nss/nss.patch b/nss/nss.patch
index 5d6730266689..d0e33181ec99 100644
--- a/nss/nss.patch
+++ b/nss/nss.patch
@@ -26,6 +26,32 @@
RANLIB = ranlib
ifndef CPU_ARCH
+@@ -57,19 +57,25 @@
+
+ ifeq (,$(filter-out i%86,$(CPU_ARCH)))
+ ifdef USE_64
++ifeq (,$(findstring -arch ,$(CC)))
+ CC += -arch x86_64
++endif
+ override CPU_ARCH = x86_64
+ else
+ OS_REL_CFLAGS = -Di386
++ifeq (,$(findstring -arch ,$(CC)))
+ CC += -arch i386
++endif
+ override CPU_ARCH = x86
+ endif
+ else
+ ifeq (arm,$(CPU_ARCH))
+ # Nothing set for arm currently.
+ else
+ OS_REL_CFLAGS = -Dppc
++ifeq (,$(findstring -arch ,$(CC)))
+ CC += -arch ppc
++endif
+ endif
+ endif
+
--- misc/nss-3.13.5/mozilla/security/coreconf/FreeBSD.mk 2009-11-23 05:06:29.000000000 -0500
+++ misc/build/nss-3.13.5/mozilla/security/coreconf/FreeBSD.mk 2012-08-28 20:27:20.000000000 -0400
@@ -57,6 +57,7 @@