~ubuntu-branches/ubuntu/raring/nss/raring-security

« back to all changes in this revision

Viewing changes to mozilla/security/nss/lib/ssl/config.mk

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2010-03-25 13:46:06 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20100325134606-bl6liuok2w9l7snv
Tags: 3.12.6-0ubuntu1
* New upstream release 3.12.6 RTM (NSS_3_12_6_RTM)
  - fixes CVE-2009-3555 aka US-CERT VU#120541
* Adjust patches to changed upstream code base
  - update debian/patches/38_kbsd.patch
  - update debian/patches/38_mips64_build.patch
  - update debian/patches/85_security_load.patch
* Remove patches that are merged upstream
  - delete debian/patches/91_nonexec_stack.patch
  - update debian/patches/series
* Bump nspr dependency to 4.8
  - update debian/control
* Add new symbols for 3.12.6
  - update debian/libnss3-1d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
DEFINES += -DNSS_SURVIVE_DOUBLE_BYPASS_FAILURE
44
44
endif
45
45
 
 
46
CRYPTOLIB=$(SOFTOKEN_LIB_DIR)/$(LIB_PREFIX)freebl.$(LIB_SUFFIX)
 
47
 
 
48
EXTRA_LIBS += \
 
49
        $(CRYPTOLIB) \
 
50
        $(NULL)
 
51
 
46
52
ifeq (,$(filter-out WIN%,$(OS_TARGET)))
47
53
 
48
54
# don't want the 32 in the shared library name
56
62
EXTRA_SHARED_LIBS += \
57
63
        -L$(DIST)/lib \
58
64
        -lnss3 \
 
65
        -L$(NSSUTIL_LIB_DIR) \
59
66
        -lnssutil3 \
60
67
        -L$(NSPR_LIB_DIR) \
61
68
        -lplc4 \
72
79
        $(NULL)
73
80
endif # NS_USE_GCC
74
81
 
75
 
# $(PROGRAM) has explicit dependencies on $(EXTRA_LIBS)
76
 
CRYPTOLIB=$(DIST)/lib/$(LIB_PREFIX)freebl.$(LIB_SUFFIX)
77
 
CRYPTODIR=../freebl
78
 
ifdef MOZILLA_SECURITY_BUILD
79
 
        CRYPTOLIB=$(DIST)/lib/$(LIB_PREFIX)crypto.$(LIB_SUFFIX)
80
 
        CRYPTODIR=../crypto
81
 
endif
82
 
 
83
 
EXTRA_LIBS += \
84
 
        $(CRYPTOLIB) \
85
 
        $(NULL)
86
 
 
87
82
else
88
83
 
89
 
# $(PROGRAM) has explicit dependencies on $(EXTRA_LIBS)
90
 
CRYPTOLIB=$(DIST)/lib/$(LIB_PREFIX)freebl.$(LIB_SUFFIX)
91
 
CRYPTODIR=../freebl
92
 
ifdef MOZILLA_SECURITY_BUILD
93
 
        CRYPTOLIB=$(DIST)/lib/$(LIB_PREFIX)crypto.$(LIB_SUFFIX)
94
 
        CRYPTODIR=../crypto
95
 
endif
96
 
 
97
 
EXTRA_LIBS += \
98
 
        $(CRYPTOLIB) \
99
 
        $(NULL)
100
 
 
101
 
 
102
 
# $(PROGRAM) has NO explicit dependencies on $(EXTRA_SHARED_LIBS)
103
84
# $(EXTRA_SHARED_LIBS) come before $(OS_LIBS), except on AIX.
104
85
EXTRA_SHARED_LIBS += \
105
86
        -L$(DIST)/lib \
106
87
        -lnss3 \
 
88
        -L$(NSSUTIL_LIB_DIR) \
107
89
        -lnssutil3 \
108
90
        -L$(NSPR_LIB_DIR) \
109
91
        -lplc4 \
115
97
EXTRA_SHARED_LIBS += -lbe
116
98
endif
117
99
 
118
 
ifeq ($(OS_TARGET),SunOS)
119
 
# The -R '$ORIGIN' linker option instructs this library to search for its
120
 
# dependencies in the same directory where it resides.
121
 
MKSHLIB += -R '$$ORIGIN'
122
 
endif
123
 
 
124
 
ifeq ($(OS_ARCH), HP-UX) 
125
 
ifneq ($(OS_TEST), ia64)
126
 
# pa-risc
127
 
ifeq ($(USE_64), 1)
128
 
MKSHLIB += +b '$$ORIGIN'
129
 
endif
130
 
endif
 
100
endif
 
101
 
 
102
# Mozilla's mozilla/modules/zlib/src/zconf.h adds the MOZ_Z_ prefix to zlib
 
103
# exported symbols, which causes problem when NSS is built as part of Mozilla.
 
104
# So we add a NSS_ENABLE_ZLIB variable to allow Mozilla to turn this off.
 
105
NSS_ENABLE_ZLIB = 1
 
106
ifdef NSS_ENABLE_ZLIB
 
107
 
 
108
DEFINES += -DNSS_ENABLE_ZLIB
 
109
 
 
110
# If a platform has a system zlib, set USE_SYSTEM_ZLIB to 1 and
 
111
# ZLIB_LIBS to the linker command-line arguments for the system zlib
 
112
# (for example, -lz) in the platform's config file in coreconf.
 
113
ifdef USE_SYSTEM_ZLIB
 
114
OS_LIBS += $(ZLIB_LIBS)
 
115
else
 
116
ZLIB_LIBS = $(DIST)/lib/$(LIB_PREFIX)zlib.$(LIB_SUFFIX)
 
117
EXTRA_LIBS += $(ZLIB_LIBS)
131
118
endif
132
119
 
133
120
endif