nss_macosx.patch (e094edcf) nss_macosx.patch (e32eb42e)
1--- misc/nss-3.14.4/mozilla/security/nss/Makefile 2008-12-03 00:24:39.000000000 +0100
2+++ misc/build/nss-3.14.4/mozilla/security/nss/Makefile 2009-11-27 13:36:22.662753328 +0100
3@@ -73,6 +73,9 @@
4 ifeq ($(OS_TARGET),WIN95)
5 NSPR_CONFIGURE_OPTS += --enable-win32-target=WIN95
6 endif
7+ifdef MACOS_SDK_DIR
8+NSPR_CONFIGURE_OPTS += --with-macos-sdk=$(MACOS_SDK_DIR)
9+endif
10 ifdef USE_DEBUG_RTL
11 NSPR_CONFIGURE_OPTS += --enable-debug-rtl
12 endif
13--- misc/nss-3.14.4/mozilla/security/nss/lib/sqlite/config.mk 2012-12-12 13:30:51.000000000 +0100
14+++ misc/build/nss-3.14.4/mozilla/security/nss/lib/sqlite/config.mk 2013-10-31 15:45:49.000000000 +0100
15@@ -39,9 +39,9 @@
1diff -ur misc/nss-3.25/nss/lib/sqlite/config.mk misc/build/nss-3.25/nss/lib/sqlite/config.mk
2--- misc/nss-3.25/nss/lib/sqlite/config.mk 2016-06-20 10:11:28.000000000 -0700
3+++ misc/build/nss-3.25/nss/lib/sqlite/config.mk 2016-07-14 23:54:14.437879000 -0700
4@@ -35,9 +35,9 @@
16 # OSAtomicCompareAndSwapPtrBarrier, which is only available on Mac OS X 10.5
17 # (Darwin 9.0) and later. Define SQLITE_WITHOUT_ZONEMALLOC to disable
18 # that code for older versions of Mac OS X. See bug 820374.
19-DARWIN_VER_MAJOR := $(shell uname -r | cut -f1 -d.)
20-DARWIN_LT_9 := $(shell [ $(DARWIN_VER_MAJOR) -lt 9 ] && echo true)
21-ifeq ($(DARWIN_LT_9),true)
22+OSX_TARGET_MINOR := $(shell echo $(MACOSX_DEPLOYMENT_TARGET) | cut -f2 -d.)
23+OSX_MINOR_LT_5 := $(shell [ $(OSX_TARGET_MINOR) -lt 5 ] && echo true)
24+ifeq ($(OSX_MINOR_LT_5),true)
25 OS_CFLAGS += -DSQLITE_WITHOUT_ZONEMALLOC
5 # OSAtomicCompareAndSwapPtrBarrier, which is only available on Mac OS X 10.5
6 # (Darwin 9.0) and later. Define SQLITE_WITHOUT_ZONEMALLOC to disable
7 # that code for older versions of Mac OS X. See bug 820374.
8-DARWIN_VER_MAJOR := $(shell uname -r | cut -f1 -d.)
9-DARWIN_LT_9 := $(shell [ $(DARWIN_VER_MAJOR) -lt 9 ] && echo true)
10-ifeq ($(DARWIN_LT_9),true)
11+OSX_TARGET_MINOR := $(shell echo $(MACOSX_DEPLOYMENT_TARGET) | cut -f2 -d.)
12+OSX_MINOR_LT_5 := $(shell [ $(OSX_TARGET_MINOR) -lt 5 ] && echo true)
13+ifeq ($(OSX_MINOR_LT_5),true)
14 OS_CFLAGS += -DSQLITE_WITHOUT_ZONEMALLOC
26 endif # Darwin
27 endif
15 endif
16 endif # Darwin