xref: /aoo41x/main/nss/nss.patch (revision cdf0e10c)
1*cdf0e10cSrcweir--- misc/nss-3.12.6/mozilla/nsprpub/config/rules.mk	2009-12-09 22:24:37.000000000 +0100
2*cdf0e10cSrcweir+++ misc/build/nss-3.12.6/mozilla/nsprpub/config/rules.mk	2010-06-11 16:35:54.946870871 +0200
3*cdf0e10cSrcweir@@ -345,7 +345,12 @@
4*cdf0e10cSrcweir ifdef NS_USE_GCC
5*cdf0e10cSrcweir 	$(RC) $(RCFLAGS) $(filter-out -U%,$(DEFINES)) $(INCLUDES:-I%=--include-dir %) -o $@ $<
6*cdf0e10cSrcweir else
7*cdf0e10cSrcweir-	$(RC) $(RCFLAGS) $(filter-out -U%,$(DEFINES)) $(INCLUDES) -Fo$@ $<
8*cdf0e10cSrcweir+        #We remove stl from the paths to avoid that rc.exe finds the stlport of
9*cdf0e10cSrcweir+        #OOo. stlport includes the system stl which will fail. By removing it,
10*cdf0e10cSrcweir+        #rc will use the stl from the system if the path is in the INCLUDE
11*cdf0e10cSrcweir+        #variable.
12*cdf0e10cSrcweir+	INCLUDE="$(subst /stl,,$(INCLUDE))" $(RC) $(RCFLAGS) $(filter-out -U%,$(DEFINES)) $(INCLUDES) -Fo$@ $<
13*cdf0e10cSrcweir+
14*cdf0e10cSrcweir endif # GCC
15*cdf0e10cSrcweir 	@echo $(RES) finished
16*cdf0e10cSrcweir endif
17*cdf0e10cSrcweir--- misc/nss-3.12.6/mozilla/nsprpub/configure	2010-02-08 19:41:35.000000000 +0100
18*cdf0e10cSrcweir+++ misc/build/nss-3.12.6/mozilla/nsprpub/configure	2010-06-11 16:35:54.960188991 +0200
19*cdf0e10cSrcweir@@ -3900,7 +3900,7 @@
20*cdf0e10cSrcweir     PR_MD_CSRCS=linux.c
21*cdf0e10cSrcweir     MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
22*cdf0e10cSrcweir     DSO_CFLAGS=-fPIC
23*cdf0e10cSrcweir-    DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
24*cdf0e10cSrcweir+    DSO_LDOPTS='-shared -Wl,-rpath,\$$ORIGIN -Wl,-soname -Wl,$(notdir $@)'
25*cdf0e10cSrcweir     _OPTIMIZE_FLAGS=-O2
26*cdf0e10cSrcweir     _DEBUG_FLAGS="-g -fno-inline"  # most people on linux use gcc/gdb, and that
27*cdf0e10cSrcweir                                    # combo is not yet good at debugging inlined
28*cdf0e10cSrcweir--- misc/nss-3.12.6/mozilla/security/coreconf/Darwin.mk	2010-02-04 19:59:10.000000000 +0100
29*cdf0e10cSrcweir+++ misc/build/nss-3.12.6/mozilla/security/coreconf/Darwin.mk	2010-06-11 16:35:54.966185975 +0200
30*cdf0e10cSrcweir@@ -39,8 +39,12 @@
31*cdf0e10cSrcweir
32*cdf0e10cSrcweir DEFAULT_COMPILER = cc
33*cdf0e10cSrcweir
34*cdf0e10cSrcweir-CC		= cc
35*cdf0e10cSrcweir-CCC		= c++
36*cdf0e10cSrcweir+# CC is taken from environment automatically.
37*cdf0e10cSrcweir+#CC		= cc
38*cdf0e10cSrcweir+# Use CCC from environment.
39*cdf0e10cSrcweir+#CCC		= c++
40*cdf0e10cSrcweir+CCC		= $(CXX)
41*cdf0e10cSrcweir+
42*cdf0e10cSrcweir RANLIB		= ranlib
43*cdf0e10cSrcweir
44*cdf0e10cSrcweir ifndef CPU_ARCH
45*cdf0e10cSrcweir--- misc/nss-3.12.6/mozilla/security/coreconf/Linux.mk	2010-01-15 23:19:00.000000000 +0100
46*cdf0e10cSrcweir+++ misc/build/nss-3.12.6/mozilla/security/coreconf/Linux.mk	2010-06-11 16:35:54.981151732 +0200
47*cdf0e10cSrcweir@@ -46,8 +46,11 @@
48*cdf0e10cSrcweir 	IMPL_STRATEGY = _PTH
49*cdf0e10cSrcweir endif
50*cdf0e10cSrcweir
51*cdf0e10cSrcweir-CC			= gcc
52*cdf0e10cSrcweir-CCC			= g++
53*cdf0e10cSrcweir+# CC is taken from environment automatically.
54*cdf0e10cSrcweir+#CC			= gcc
55*cdf0e10cSrcweir+# Use CCC from environment.
56*cdf0e10cSrcweir+#CCC			= g++
57*cdf0e10cSrcweir+CCC		= $(CXX)
58*cdf0e10cSrcweir RANLIB			= ranlib
59*cdf0e10cSrcweir
60*cdf0e10cSrcweir DEFAULT_COMPILER = gcc
61*cdf0e10cSrcweir@@ -147,7 +150,7 @@
62*cdf0e10cSrcweir # incorrectly reports undefined references in the libraries we link with, so
63*cdf0e10cSrcweir # we don't use -z defs there.
64*cdf0e10cSrcweir ZDEFS_FLAG		= -Wl,-z,defs
65*cdf0e10cSrcweir-DSO_LDOPTS		+= $(if $(findstring 2.11.90.0.8,$(shell ld -v)),,$(ZDEFS_FLAG))
66*cdf0e10cSrcweir+DSO_LDOPTS		+= $(if $(findstring 2.11.90.0.8,$(shell ld -v)),,$(ZDEFS_FLAG)) '-Wl,-rpath,$$ORIGIN'
67*cdf0e10cSrcweir LDFLAGS			+= $(ARCHFLAG)
68*cdf0e10cSrcweir
69*cdf0e10cSrcweir # INCLUDES += -I/usr/include -Y/usr/include/linux
70*cdf0e10cSrcweir@@ -158,8 +161,13 @@
71*cdf0e10cSrcweir #
72*cdf0e10cSrcweir CPU_TAG = _$(CPU_ARCH)
73*cdf0e10cSrcweir
74*cdf0e10cSrcweir+ifeq ($(SYSTEM_ZLIB),YES)
75*cdf0e10cSrcweir+# Currently (3.12.4) only the tools modutil and signtool are linked with libz
76*cdf0e10cSrcweir+# If USE_SYSTEM_ZLIB is not set then the tools link statically libzlib.a which
77*cdf0e10cSrcweir+# is also build in nss.
78*cdf0e10cSrcweir USE_SYSTEM_ZLIB = 1
79*cdf0e10cSrcweir ZLIB_LIBS = -lz
80*cdf0e10cSrcweir+endif
81*cdf0e10cSrcweir
82*cdf0e10cSrcweir # The -rpath '$$ORIGIN' linker option instructs this library to search for its
83*cdf0e10cSrcweir # dependencies in the same directory where it resides.
84*cdf0e10cSrcweir--- misc/nss-3.12.6/mozilla/security/coreconf/SunOS5.mk	2009-06-11 02:55:32.000000000 +0200
85*cdf0e10cSrcweir+++ misc/build/nss-3.12.6/mozilla/security/coreconf/SunOS5.mk	2010-06-11 16:35:54.985571182 +0200
86*cdf0e10cSrcweir@@ -89,8 +89,12 @@
87*cdf0e10cSrcweir 	    # OPTIMIZER += -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer
88*cdf0e10cSrcweir 	endif
89*cdf0e10cSrcweir else
90*cdf0e10cSrcweir-	CC         = cc
91*cdf0e10cSrcweir-	CCC        = CC
92*cdf0e10cSrcweir+# CC is taken from environment automatically.
93*cdf0e10cSrcweir+#	CC         = cc
94*cdf0e10cSrcweir+# Use CXX from environment.
95*cdf0e10cSrcweir+#	CCC        = CC
96*cdf0e10cSrcweir+        CCC       = $(CXX)
97*cdf0e10cSrcweir+
98*cdf0e10cSrcweir 	ASFLAGS   += -Wa,-P
99*cdf0e10cSrcweir 	OS_CFLAGS += $(NOMD_OS_CFLAGS) $(ARCHFLAG)
100*cdf0e10cSrcweir 	ifndef BUILD_OPT
101*cdf0e10cSrcweir--- misc/nss-3.12.6/mozilla/security/coreconf/arch.mk	2009-06-05 04:14:49.000000000 +0200
102*cdf0e10cSrcweir+++ misc/build/nss-3.12.6/mozilla/security/coreconf/arch.mk	2010-06-11 16:35:54.990913282 +0200
103*cdf0e10cSrcweir@@ -324,7 +324,12 @@
104*cdf0e10cSrcweir # IMPL_STRATEGY may be defined too.
105*cdf0e10cSrcweir #
106*cdf0e10cSrcweir
107*cdf0e10cSrcweir-OBJDIR_NAME = $(OS_TARGET)$(OS_RELEASE)$(CPU_TAG)$(COMPILER_TAG)$(LIBC_TAG)$(IMPL_STRATEGY)$(OBJDIR_TAG).OBJ
108*cdf0e10cSrcweir+# OBJDIR_NAME is used to build the directory containing the built objects, for
109*cdf0e10cSrcweir+# example mozilla/dist/Linux2.6_x86_glibc_PTH_DBG.OBJ
110*cdf0e10cSrcweir+# We need to deliver the contents of that folder into the solver. To make that easier
111*cdf0e10cSrcweir+# in the makefile we rename this directory to "out".
112*cdf0e10cSrcweir+#OBJDIR_NAME = $(OS_TARGET)$(OS_RELEASE)$(CPU_TAG)$(COMPILER_TAG)$(LIBC_TAG)$(IMPL_STRATEGY)$(OBJDIR_TAG).OBJ
113*cdf0e10cSrcweir+OBJDIR_NAME = out
114*cdf0e10cSrcweir
115*cdf0e10cSrcweir ifeq (,$(filter-out WIN%,$(OS_TARGET)))
116*cdf0e10cSrcweir ifndef BUILD_OPT
117*cdf0e10cSrcweir--- misc/nss-3.12.6/mozilla/security/coreconf/rules.mk	2009-12-08 02:33:36.000000000 +0100
118*cdf0e10cSrcweir+++ misc/build/nss-3.12.6/mozilla/security/coreconf/rules.mk	2010-06-11 16:35:54.996448704 +0200
119*cdf0e10cSrcweir@@ -355,7 +355,12 @@
120*cdf0e10cSrcweir ifdef NS_USE_GCC
121*cdf0e10cSrcweir 	$(RC) $(filter-out -U%,$(DEFINES)) $(INCLUDES:-I%=--include-dir %) -o $@ $<
122*cdf0e10cSrcweir else
123*cdf0e10cSrcweir-	$(RC) $(filter-out -U%,$(DEFINES)) $(INCLUDES) -Fo$@ $<
124*cdf0e10cSrcweir+        #We remove stl from the paths to avoid that rc.exe finds the stlport of
125*cdf0e10cSrcweir+        #OOo. stlport includes the system stl which will fail. By removing it,
126*cdf0e10cSrcweir+        #rc will use the stl from the system if the path is in the INCLUDE
127*cdf0e10cSrcweir+        #variable.
128*cdf0e10cSrcweir+	INCLUDE="$(subst /stl,,$(INCLUDE))" $(RC) $(filter-out -U%,$(DEFINES)) $(INCLUDES) -Fo$@ $<
129*cdf0e10cSrcweir+
130*cdf0e10cSrcweir endif
131*cdf0e10cSrcweir 	@echo $(RES) finished
132*cdf0e10cSrcweir endif
133*cdf0e10cSrcweir--- misc/nss-3.12.6/mozilla/security/nss/cmd/platlibs.mk	2010-02-04 19:59:10.000000000 +0100
134*cdf0e10cSrcweir+++ misc/build/nss-3.12.6/mozilla/security/nss/cmd/platlibs.mk	2010-06-11 16:35:55.004869805 +0200
135*cdf0e10cSrcweir@@ -41,27 +41,28 @@
136*cdf0e10cSrcweir ifeq ($(OS_ARCH), SunOS)
137*cdf0e10cSrcweir ifeq ($(BUILD_SUN_PKG), 1)
138*cdf0e10cSrcweir ifeq ($(USE_64), 1)
139*cdf0e10cSrcweir-EXTRA_SHARED_LIBS += -R '$$ORIGIN/../lib:/usr/lib/mps/secv1/64:/usr/lib/mps/64'
140*cdf0e10cSrcweir+#In OOo we would probable put the executables next to libs
141*cdf0e10cSrcweir+EXTRA_SHARED_LIBS += -R '$$ORIGIN'
142*cdf0e10cSrcweir else
143*cdf0e10cSrcweir-EXTRA_SHARED_LIBS += -R '$$ORIGIN/../lib:/usr/lib/mps/secv1:/usr/lib/mps'
144*cdf0e10cSrcweir+EXTRA_SHARED_LIBS += -R '$$ORIGIN'
145*cdf0e10cSrcweir endif
146*cdf0e10cSrcweir else
147*cdf0e10cSrcweir-EXTRA_SHARED_LIBS += -R '$$ORIGIN/../lib'
148*cdf0e10cSrcweir+EXTRA_SHARED_LIBS += -R '$$ORIGIN'
149*cdf0e10cSrcweir endif
150*cdf0e10cSrcweir endif
151*cdf0e10cSrcweir
152*cdf0e10cSrcweir ifeq ($(OS_ARCH), Linux)
153*cdf0e10cSrcweir ifeq ($(BUILD_SUN_PKG), 1)
154*cdf0e10cSrcweir ifeq ($(USE_64), 1)
155*cdf0e10cSrcweir-EXTRA_SHARED_LIBS += -Wl,-rpath,'$$ORIGIN/../lib64:/opt/sun/private/lib64:$$ORIGIN/../lib'
156*cdf0e10cSrcweir+EXTRA_SHARED_LIBS += -Wl,-rpath,'$$ORIGIN'
157*cdf0e10cSrcweir else
158*cdf0e10cSrcweir-EXTRA_SHARED_LIBS += -Wl,-rpath,'$$ORIGIN/../lib:/opt/sun/private/lib'
159*cdf0e10cSrcweir+EXTRA_SHARED_LIBS += -Wl,-rpath,'$$ORIGIN'
160*cdf0e10cSrcweir endif
161*cdf0e10cSrcweir else
162*cdf0e10cSrcweir ifeq ($(USE_64), 1)
163*cdf0e10cSrcweir-EXTRA_SHARED_LIBS += -Wl,-rpath,'$$ORIGIN/../lib64:$$ORIGIN/../lib'
164*cdf0e10cSrcweir+EXTRA_SHARED_LIBS += -Wl,-rpath,'$$ORIGIN'
165*cdf0e10cSrcweir else
166*cdf0e10cSrcweir-EXTRA_SHARED_LIBS += -Wl,-rpath,'$$ORIGIN/../lib'
167*cdf0e10cSrcweir+EXTRA_SHARED_LIBS += -Wl,-rpath,'$$ORIGIN'
168*cdf0e10cSrcweir endif
169*cdf0e10cSrcweir endif
170*cdf0e10cSrcweir endif
171*cdf0e10cSrcweir--- misc/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/Makefile	2009-08-07 21:06:37.000000000 +0200
172*cdf0e10cSrcweir+++ misc/build/nss-3.12.6/mozilla/security/nss/cmd/shlibsign/Makefile	2010-06-11 16:35:55.009851148 +0200
173*cdf0e10cSrcweir@@ -78,10 +78,15 @@
174*cdf0e10cSrcweir
175*cdf0e10cSrcweir # sign any and all shared libraries that contain the word freebl
176*cdf0e10cSrcweir
177*cdf0e10cSrcweir-CHECKLIBS = $(DIST)/lib/$(DLL_PREFIX)softokn3.$(DLL_SUFFIX)
178*cdf0e10cSrcweir-CHECKLIBS += $(wildcard $(DIST)/lib/$(DLL_PREFIX)freebl*3.$(DLL_SUFFIX))
179*cdf0e10cSrcweir+# Signing causes loading of some system library which in turn loads
180*cdf0e10cSrcweir+# libsqlite3. Then it loads libsqulite3 from nss, which does not have the proper
181*cdf0e10cSrcweir+# version. Therefore signing fails.
182*cdf0e10cSrcweir+# We cannot build with the system sqlite3, because it is too old (SDK
183*cdf0e10cSrcweir+# 10.4). Otherwise one could set NSS_USE_SYSTEM_SQLITE=1 and use the system lib.
184*cdf0e10cSrcweir+#CHECKLIBS = $(DIST)/lib/$(DLL_PREFIX)softokn3.$(DLL_SUFFIX)
185*cdf0e10cSrcweir+#CHECKLIBS += $(wildcard $(DIST)/lib/$(DLL_PREFIX)freebl*3.$(DLL_SUFFIX))
186*cdf0e10cSrcweir ifndef NSS_DISABLE_DBM
187*cdf0e10cSrcweir-CHECKLIBS += $(DIST)/lib/$(DLL_PREFIX)nssdbm3.$(DLL_SUFFIX)
188*cdf0e10cSrcweir+#CHECKLIBS += $(DIST)/lib/$(DLL_PREFIX)nssdbm3.$(DLL_SUFFIX)
189*cdf0e10cSrcweir endif
190*cdf0e10cSrcweir CHECKLOC = $(CHECKLIBS:.$(DLL_SUFFIX)=.chk)
191*cdf0e10cSrcweir
192