security/nss/lib/sqlite/config.mk

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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