security/nss/lib/sqlite/config.mk

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 #
michael@0 2 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 5
michael@0 6
michael@0 7 # can't do this in manifest.mn because OS_TARGET isn't defined there.
michael@0 8 ifeq (,$(filter-out WIN%,$(OS_TARGET)))
michael@0 9
michael@0 10 # don't want the 32 in the shared library name
michael@0 11 SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
michael@0 12 IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX)
michael@0 13
michael@0 14 #RES = $(OBJDIR)/$(LIBRARY_NAME).res
michael@0 15 #RESNAME = $(LIBRARY_NAME).rc
michael@0 16 endif
michael@0 17
michael@0 18 ifeq ($(OS_TARGET),AIX)
michael@0 19 EXTRA_LIBS += -lpthreads
michael@0 20 ifdef BUILD_OPT
michael@0 21 OPTIMIZER=
michael@0 22 endif
michael@0 23 endif
michael@0 24
michael@0 25 ifeq ($(OS_TARGET),Darwin)
michael@0 26 # These version numbers come from the -version-info 8:6:8 libtool option in
michael@0 27 # sqlite upstream's Makefile.in. (Given -version-info current:revision:age,
michael@0 28 # libtool passes
michael@0 29 # -compatibility_version current+1 -current_version current+1.revision
michael@0 30 # to the linker.) Apple builds the system libsqlite3.dylib with these
michael@0 31 # version numbers, so we use the same to be compatible.
michael@0 32 DARWIN_DYLIB_VERSIONS = -compatibility_version 9 -current_version 9.6
michael@0 33
michael@0 34 # The SQLite code that uses the Apple zone allocator calls
michael@0 35 # OSAtomicCompareAndSwapPtrBarrier, which is only available on Mac OS X 10.5
michael@0 36 # (Darwin 9.0) and later. Define SQLITE_WITHOUT_ZONEMALLOC to disable
michael@0 37 # that code for older versions of Mac OS X. See bug 820374.
michael@0 38 DARWIN_VER_MAJOR := $(shell uname -r | cut -f1 -d.)
michael@0 39 DARWIN_LT_9 := $(shell [ $(DARWIN_VER_MAJOR) -lt 9 ] && echo true)
michael@0 40 ifeq ($(DARWIN_LT_9),true)
michael@0 41 OS_CFLAGS += -DSQLITE_WITHOUT_ZONEMALLOC
michael@0 42 endif
michael@0 43 endif # Darwin

mercurial