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

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

mercurial