tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

config.mk (1235B)


      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/.
      5 
      6 ifeq ($(OS_TARGET),AIX)
      7 EXTRA_LIBS += -lpthreads
      8 ifdef BUILD_OPT
      9 OPTIMIZER=
     10 endif
     11 endif
     12 
     13 ifeq ($(OS_TARGET),Darwin)
     14 # These version numbers come from the -version-info 8:6:8 libtool option in
     15 # sqlite upstream's Makefile.in.  (Given -version-info current:revision:age,
     16 # libtool passes
     17 #     -compatibility_version current+1 -current_version current+1.revision
     18 # to the linker.)  Apple builds the system libsqlite3.dylib with these
     19 # version numbers, so we use the same to be compatible.
     20 DARWIN_DYLIB_VERSIONS = -compatibility_version 9 -current_version 9.6
     21 
     22 # The SQLite code that uses the Apple zone allocator calls
     23 # OSAtomicCompareAndSwapPtrBarrier, which is only available on Mac OS X 10.5
     24 # (Darwin 9.0) and later. Define SQLITE_WITHOUT_ZONEMALLOC to disable
     25 # that code for older versions of Mac OS X. See bug 820374.
     26 DARWIN_VER_MAJOR := $(shell uname -r | cut -f1 -d.)
     27 DARWIN_LT_9 := $(shell [ $(DARWIN_VER_MAJOR) -lt 9 ] && echo true)
     28 ifeq ($(DARWIN_LT_9),true)
     29 OS_CFLAGS += -DSQLITE_WITHOUT_ZONEMALLOC
     30 endif
     31 endif # Darwin