security/nss/lib/sqlite/config.mk

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/lib/sqlite/config.mk	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +#
     1.5 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.8 +
     1.9 +
    1.10 +# can't do this in manifest.mn because OS_TARGET isn't defined there.
    1.11 +ifeq (,$(filter-out WIN%,$(OS_TARGET)))
    1.12 +
    1.13 +# don't want the 32 in the shared library name
    1.14 +SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
    1.15 +IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX)
    1.16 +
    1.17 +#RES = $(OBJDIR)/$(LIBRARY_NAME).res
    1.18 +#RESNAME = $(LIBRARY_NAME).rc
    1.19 +endif
    1.20 +
    1.21 +ifeq ($(OS_TARGET),AIX)
    1.22 +EXTRA_LIBS += -lpthreads
    1.23 +ifdef BUILD_OPT
    1.24 +OPTIMIZER=
    1.25 +endif
    1.26 +endif
    1.27 +
    1.28 +ifeq ($(OS_TARGET),Darwin)
    1.29 +# These version numbers come from the -version-info 8:6:8 libtool option in
    1.30 +# sqlite upstream's Makefile.in.  (Given -version-info current:revision:age,
    1.31 +# libtool passes
    1.32 +#     -compatibility_version current+1 -current_version current+1.revision
    1.33 +# to the linker.)  Apple builds the system libsqlite3.dylib with these
    1.34 +# version numbers, so we use the same to be compatible.
    1.35 +DARWIN_DYLIB_VERSIONS = -compatibility_version 9 -current_version 9.6
    1.36 +
    1.37 +# The SQLite code that uses the Apple zone allocator calls
    1.38 +# OSAtomicCompareAndSwapPtrBarrier, which is only available on Mac OS X 10.5
    1.39 +# (Darwin 9.0) and later. Define SQLITE_WITHOUT_ZONEMALLOC to disable
    1.40 +# that code for older versions of Mac OS X. See bug 820374.
    1.41 +DARWIN_VER_MAJOR := $(shell uname -r | cut -f1 -d.)
    1.42 +DARWIN_LT_9 := $(shell [ $(DARWIN_VER_MAJOR) -lt 9 ] && echo true)
    1.43 +ifeq ($(DARWIN_LT_9),true)
    1.44 +OS_CFLAGS += -DSQLITE_WITHOUT_ZONEMALLOC
    1.45 +endif
    1.46 +endif # Darwin

mercurial