From 44d3245eef6347ff365b096154c026b77a55d395 Mon Sep 17 00:00:00 2001 From: Franziskus Kiefer Date: Fri, 14 Oct 2016 16:32:09 +0200 Subject: Bug 1310168 - fix mac builds, r=bustage --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 32f822cee..270747e06 100644 --- a/Makefile +++ b/Makefile @@ -91,6 +91,10 @@ endif ifdef CCC NSPR_CONFIGURE_ENV += CXX=$(CCC) endif +# Remove -arch definitions. NSPR can't handle that. +NSPR_CONFIGURE_ENV := $(filter-out -arch x86_64,$(NSPR_CONFIGURE_ENV)) +NSPR_CONFIGURE_ENV := $(filter-out -arch i386,$(NSPR_CONFIGURE_ENV)) +NSPR_CONFIGURE_ENV := $(filter-out -arch ppc,$(NSPR_CONFIGURE_ENV)) ifdef SANITIZER_CFLAGS ifdef BUILD_OPT -- cgit v1.2.1