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

« back to all changes in this revision

Viewing changes to mozilla/security/nss/lib/freebl/Makefile

  • 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:
77
77
ifdef FREEBL_NO_DEPEND
78
78
        DEFINES += -DFREEBL_NO_DEPEND
79
79
endif
80
 
# some code wants _X86_ defined for intel CPUs.
81
 
# coreconf does this for windows, but not for Linux, FreeBSD, etc.
82
 
ifeq (,$(filter-out x86 x86_64,$(CPU_ARCH)))
83
 
ifneq (,$(filter-out WIN%,$(OS_TARGET)))
84
 
        DEFINES += -D_X86_
 
80
# NSS_X86 means the target is a 32-bits x86 CPU architecture
 
81
# NSS_X64 means the target is a 64-bits x64 CPU architecture
 
82
# NSS_X86_OR_X64 means the target is either x86 or x64
 
83
ifeq (,$(filter-out x386 x86 x86_64,$(CPU_ARCH)))
 
84
        DEFINES += -DNSS_X86_OR_X64
 
85
ifdef USE_64
 
86
        DEFINES += -DNSS_X64
 
87
else
 
88
        DEFINES += -DNSS_X86
85
89
endif
86
90
endif
87
91
 
90
94
    MPI_SRCS += mpvalpha.c
91
95
endif
92
96
 
93
 
ifeq (,$(filter-out WINNT WIN95,$(OS_TARGET)))  #omits WIN16 and WINCE
 
97
ifeq (OS2,$(OS_TARGET))
 
98
    ASFILES  = mpi_x86_os2.s
 
99
    DEFINES += -DMP_ASSEMBLY_MULTIPLY -DMP_ASSEMBLY_SQUARE 
 
100
    DEFINES += -DMP_ASSEMBLY_DIV_2DX1D
 
101
    DEFINES += -DMP_USE_UINT_DIGIT -DMP_NO_MP_WORD
 
102
    DEFINES += -DMP_CHAR_STORE_SLOW -DMP_IS_LITTLE_ENDIAN
 
103
endif
 
104
 
 
105
ifeq (,$(filter-out WINNT WIN95,$(OS_TARGET)))  #omits WINCE
94
106
ifndef USE_64
95
107
# 32-bit Windows
96
108
ifdef NS_USE_GCC
145
157
ifeq ($(OS_TARGET),Linux)
146
158
ifeq ($(CPU_ARCH),x86_64)
147
159
    ASFILES  = arcfour-amd64-gas.s mpi_amd64_gas.s
148
 
    ASFLAGS += -march=opteron -m64 -fPIC
 
160
    ASFLAGS += -march=opteron -m64 -fPIC -Wa,--noexecstack
149
161
    DEFINES += -DNSS_BEVAND_ARCFOUR -DMPI_AMD64 -DMP_ASSEMBLY_MULTIPLY
150
162
    DEFINES += -DNSS_USE_COMBA
151
163
    DEFINES += -DMP_CHAR_STORE_SLOW -DMP_IS_LITTLE_ENDIAN
152
164
#   DEFINES += -DMPI_AMD64_ADD
153
165
    # comment the next two lines to turn off intel HW accelleration
154
 
    DEFINES += -DUSE_HW_AES
155
 
    ASFILES += intel-aes.s
 
166
#    DEFINES += -DUSE_HW_AES
 
167
#    ASFILES += intel-aes.s
156
168
    MPI_SRCS += mpi_amd64.c mp_comba.c
157
169
endif
158
170
ifeq ($(CPU_ARCH),x86)
218
230
 
219
231
ifeq ($(OS_TARGET),SunOS)
220
232
 
221
 
# The -R '$ORIGIN' linker option instructs this library to search for its
222
 
# dependencies in the same directory where it resides.
223
 
MKSHLIB += -R '$$ORIGIN'
224
233
ifdef NS_USE_GCC
225
234
    ifdef GCC_USE_GNU_LD
226
235
        MKSHLIB += -Wl,-Bsymbolic,-z,now,-z,text
401
410
        DEFINES += -DNSS_BEVAND_ARCFOUR -DMPI_AMD64 -DMP_ASSEMBLY_MULTIPLY
402
411
        DEFINES += -DNSS_USE_COMBA -DMP_CHAR_STORE_SLOW -DMP_IS_LITTLE_ENDIAN
403
412
        # comment the next two lines to turn off intel HW accelleration
404
 
        DEFINES += -DUSE_HW_AES
405
 
        ASFILES += intel-aes.s
 
413
#       DEFINES += -DUSE_HW_AES
 
414
#       ASFILES += intel-aes.s
406
415
        MPI_SRCS += mpi_amd64.c
407
416
    else
408
417
        # Solaris x86
409
 
        DEFINES += -D_X86_
410
418
        DEFINES += -DMP_USE_UINT_DIGIT
411
419
        DEFINES += -DMP_ASSEMBLY_MULTIPLY -DMP_ASSEMBLY_SQUARE 
412
420
        DEFINES += -DMP_ASSEMBLY_DIV_2DX1D