security/nss/lib/ssl/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/.
     6 ifdef NISCC_TEST
     7 DEFINES += -DNISCC_TEST
     8 endif
    10 ifdef NSS_NO_PKCS11_BYPASS
    11 DEFINES += -DNO_PKCS11_BYPASS
    12 else
    13 CRYPTOLIB=$(SOFTOKEN_LIB_DIR)/$(LIB_PREFIX)freebl.$(LIB_SUFFIX)
    15 EXTRA_LIBS += \
    16 	$(CRYPTOLIB) \
    17 	$(NULL)
    18 endif
    20 ifeq (,$(filter-out WIN%,$(OS_TARGET)))
    22 # don't want the 32 in the shared library name
    23 SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
    24 IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX)
    26 RES = $(OBJDIR)/ssl.res
    27 RESNAME = ssl.rc
    29 ifdef NS_USE_GCC
    30 EXTRA_SHARED_LIBS += \
    31 	-L$(DIST)/lib \
    32 	-lnss3 \
    33 	-L$(NSSUTIL_LIB_DIR) \
    34 	-lnssutil3 \
    35 	-L$(NSPR_LIB_DIR) \
    36 	-lplc4 \
    37 	-lplds4 \
    38 	-lnspr4 \
    39 	$(NULL)
    40 else # ! NS_USE_GCC
    41 EXTRA_SHARED_LIBS += \
    42 	$(DIST)/lib/nss3.lib \
    43 	$(DIST)/lib/nssutil3.lib \
    44 	$(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plc4.lib \
    45 	$(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plds4.lib \
    46 	$(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)nspr4.lib \
    47 	$(NULL)
    48 endif # NS_USE_GCC
    50 else
    52 # $(EXTRA_SHARED_LIBS) come before $(OS_LIBS), except on AIX.
    53 EXTRA_SHARED_LIBS += \
    54 	-L$(DIST)/lib \
    55 	-lnss3 \
    56 	-L$(NSSUTIL_LIB_DIR) \
    57 	-lnssutil3 \
    58 	-L$(NSPR_LIB_DIR) \
    59 	-lplc4 \
    60 	-lplds4 \
    61 	-lnspr4 \
    62 	$(NULL)
    64 ifeq ($(OS_ARCH), BeOS)
    65 EXTRA_SHARED_LIBS += -lbe
    66 endif
    68 endif
    70 # Mozilla's mozilla/modules/zlib/src/zconf.h adds the MOZ_Z_ prefix to zlib
    71 # exported symbols, which causes problem when NSS is built as part of Mozilla.
    72 # So we add a NSS_ENABLE_ZLIB variable to allow Mozilla to turn this off.
    73 NSS_ENABLE_ZLIB = 1
    74 ifdef NSS_ENABLE_ZLIB
    76 DEFINES += -DNSS_ENABLE_ZLIB
    78 # If a platform has a system zlib, set USE_SYSTEM_ZLIB to 1 and
    79 # ZLIB_LIBS to the linker command-line arguments for the system zlib
    80 # (for example, -lz) in the platform's config file in coreconf.
    81 ifdef USE_SYSTEM_ZLIB
    82 OS_LIBS += $(ZLIB_LIBS)
    83 else
    84 ZLIB_LIBS = $(DIST)/lib/$(LIB_PREFIX)zlib.$(LIB_SUFFIX)
    85 EXTRA_LIBS += $(ZLIB_LIBS)
    86 endif
    88 endif

mercurial