xref: /aoo41x/main/nss/nss_macosx.patch (revision e32eb42e)
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 @@
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
15 endif
16 endif # Darwin
17