1 --- a/a/a/nspr/config/autoconf.mk.in 2011-08-29 19:02:51.000000000 +0200
2 +++ a/a/a/nspr/config/autoconf.mk.in 2012-03-22 11:24:22.137097336 +0100
4 OBJ_SUFFIX = $(error config/config.mk needs to be included before using OBJ_SUFFIX)
5 _OBJ_SUFFIX = @OBJ_SUFFIX@
6 LIB_SUFFIX = @LIB_SUFFIX@
7 +IMPORT_LIB_SUFFIX = @IMPORT_LIB_SUFFIX@
8 DLL_SUFFIX = @DLL_SUFFIX@
9 ASM_SUFFIX = @ASM_SUFFIX@
10 MOD_NAME = @NSPR_MODNAME@
11 --- a/a/a/nspr/config/rules.mk 2011-08-29 19:02:51.000000000 +0200
12 +++ a/a/a/nspr/config/rules.mk 2012-03-22 11:24:22.138097311 +0100
17 -ifeq (,$(filter-out WINNT WINCE OS2,$(OS_ARCH)))
18 +ifeq (,$(filter-out Linux WIN95 WINNT WINCE OS2,$(OS_ARCH)))
21 # Win95 and OS/2 require library names conforming to the 8.3 rule.
22 # other platforms do not.
24 -ifeq (,$(filter-out WIN95 WINCE WINMO OS2,$(OS_TARGET)))
25 +ifeq (,$(filter-out WIN95 WINCE WINMO WINNT OS2,$(OS_TARGET)))
26 LIBRARY = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION)_s.$(LIB_SUFFIX)
27 SHARED_LIBRARY = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
28 -IMPORT_LIBRARY = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).$(LIB_SUFFIX)
29 +IMPORT_LIBRARY = $(OBJDIR)/lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(IMPORT_LIB_SUFFIX)
30 SHARED_LIB_PDB = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).pdb
32 LIBRARY = $(OBJDIR)/lib$(LIBRARY_NAME)$(LIBRARY_VERSION)_s.$(LIB_SUFFIX)
33 SHARED_LIBRARY = $(OBJDIR)/lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
34 -IMPORT_LIBRARY = $(OBJDIR)/lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(LIB_SUFFIX)
35 +IMPORT_LIBRARY = $(OBJDIR)/lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(IMPORT_LIB_SUFFIX)
36 SHARED_LIB_PDB = $(OBJDIR)/lib$(LIBRARY_NAME)$(LIBRARY_VERSION).pdb
39 --- a/a/a/nspr/configure 2012-02-14 20:06:00.000000000 +0100
40 +++ a/a/a/nspr/configure 2012-03-22 11:24:22.139097286 +0100
45 +IMPORT_LIB_SUFFIX=$IMPORT_LIB_SUFFIX
48 MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
53 + IMPORT_LIB_SUFFIX=dll.a
54 MKSHLIB='$(CC) -shared -Wl,--export-all-symbols -Wl,--out-implib -Wl,$(IMPORT_LIBRARY) $(DLLBASE) -o $(subst $(OBJDIR)/,,$(SHARED_LIBRARY))'
56 # Use temp file for windres (bug 213281)
58 GARBAGE='$(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb'
61 + IMPORT_LIB_SUFFIX=lib
64 # Determine compiler version
65 @@ -4661,11 +4664,11 @@
67 if test "$OS_TARGET" = "WINNT"; then
69 - LIBNSPR='$(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
70 - LIBPLC='$(dist_libdir)/libplc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
71 + LIBNSPR='$(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).$(IMPORT_LIB_SUFFIX)'
72 + LIBPLC='$(dist_libdir)/libplc$(MOD_MAJOR_VERSION).$(IMPORT_LIB_SUFFIX)'
74 - LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
75 - LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
76 + LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(IMPORT_LIB_SUFFIX)'
77 + LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(IMPORT_LIB_SUFFIX)'
85 + IMPORT_LIB_SUFFIX=lib
87 MKSHLIB='$(LD) -DLL $(DSO_LDOPTS) -OUT:$@'
90 RESOLVE_LINK_SYMBOLS=1
93 - LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
94 - LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
95 + LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(IMPORT_LIB_SUFFIX)'
96 + LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(IMPORT_LIB_SUFFIX)'
99 if test -n "$MOZ_DEBUG_SYMBOLS"; then
100 @@ -5584,6 +5588,7 @@
104 + IMPORT_LIB_SUFFIX=lib
108 @@ -5668,6 +5673,7 @@
112 + IMPORT_LIB_SUFFIX=lib
116 @@ -6966,6 +6972,7 @@
117 s%@CPU_ARCH@%$CPU_ARCH%g
118 s%@OBJ_SUFFIX@%$OBJ_SUFFIX%g
119 s%@LIB_SUFFIX@%$LIB_SUFFIX%g
120 +s%@IMPORT_LIB_SUFFIX@%$IMPORT_LIB_SUFFIX%g
121 s%@DLL_SUFFIX@%$DLL_SUFFIX%g
122 s%@ASM_SUFFIX@%$ASM_SUFFIX%g
123 s%@WRAP_LDFLAGS@%$WRAP_LDFLAGS%g
124 --- a/a/a/nspr/configure.in 2012-02-14 20:06:00.000000000 +0100
125 +++ a/a/a/nspr/configure.in 2012-03-22 11:24:22.139097286 +0100
127 dnl ========================================================
130 +IMPORT_LIB_SUFFIX=$(IMPORT_LIB_SUFFIX)
133 MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
134 @@ -1901,6 +1902,7 @@
138 + IMPORT_LIB_SUFFIX=dll.a
139 MKSHLIB='$(CC) -shared -Wl,--export-all-symbols -Wl,--out-implib -Wl,$(IMPORT_LIBRARY) $(DLLBASE) -o $(subst $(OBJDIR)/,,$(SHARED_LIBRARY))'
141 # Use temp file for windres (bug 213281)
142 @@ -1917,6 +1919,7 @@
143 GARBAGE='$(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb'
146 + IMPORT_LIB_SUFFIX=lib
149 # Determine compiler version
150 @@ -2014,11 +2017,11 @@
152 if test "$OS_TARGET" = "WINNT"; then
154 - LIBNSPR='$(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
155 - LIBPLC='$(dist_libdir)/libplc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
156 + LIBNSPR='$(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).$(IMPORT_LIB_SUFFIX)'
157 + LIBPLC='$(dist_libdir)/libplc$(MOD_MAJOR_VERSION).$(IMPORT_LIB_SUFFIX)'
159 - LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
160 - LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
161 + LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(IMPORT_LIB_SUFFIX)'
162 + LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(IMPORT_LIB_SUFFIX)'
166 @@ -2089,6 +2092,7 @@
170 + IMPORT_LIB_SUFFIX=lib
172 MKSHLIB='$(LD) -DLL $(DSO_LDOPTS) -OUT:$@'
174 @@ -2096,8 +2100,8 @@
175 RESOLVE_LINK_SYMBOLS=1
177 MDCPUCFG_H=_win95.cfg
178 - LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
179 - LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
180 + LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(IMPORT_LIB_SUFFIX)'
181 + LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(IMPORT_LIB_SUFFIX)'
184 if test -n "$MOZ_DEBUG_SYMBOLS"; then
185 @@ -2576,6 +2580,7 @@
186 AC_DEFINE(HAVE_SOCKLEN_T)
189 + IMPORT_LIB_SUFFIX=lib
193 @@ -2630,6 +2635,7 @@
194 AC_DEFINE(BSD_SELECT)
195 AC_DEFINE(TCPV40HDRS)
197 + IMPORT_LIB_SUFFIX=lib
201 @@ -3291,6 +3297,7 @@
205 +AC_SUBST(IMPORT_LIB_SUFFIX)
208 AC_SUBST(WRAP_LDFLAGS)
209 --- a/a/a/nspr/pr/include/md/_win95.cfg 2010-01-27 03:45:49.000000000 +0100
210 +++ a/a/a/nspr/pr/include/md/_win95.cfg 2012-03-22 11:24:22.139097286 +0100
212 #define PR_BYTES_PER_WORD_LOG2 2
213 #define PR_BYTES_PER_DWORD_LOG2 3
215 -#elif defined(_M_X64) || defined(_M_AMD64) || defined(_AMD64_)
216 +#elif defined(_M_X64) || defined(_M_AMD64) || defined(_AMD64_) || defined (_WIN64)
218 #define IS_LITTLE_ENDIAN 1
220 --- a/a/a/nspr/pr/include/md/_winnt.cfg 2010-01-27 03:45:49.000000000 +0100
221 +++ a/a/a/nspr/pr/include/md/_winnt.cfg 2012-03-22 11:24:22.140097261 +0100
223 #define PR_BYTES_PER_WORD_LOG2 2
224 #define PR_BYTES_PER_DWORD_LOG2 2
226 -#elif defined(_M_X64) || defined(_M_AMD64) || defined(_AMD64_)
227 +#elif defined(_M_X64) || defined(_M_AMD64) || defined(_AMD64_) || defined (_WIN64)
229 #define IS_LITTLE_ENDIAN 1
231 --- a/a/a/nspr/pr/src/Makefile.in 2011-09-22 17:21:06.000000000 +0200
232 +++ a/a/a/nspr/pr/src/Makefile.in 2012-03-22 11:24:22.140097261 +0100
234 topsrcdir = @top_srcdir@
239 +LIBRARY_VERSION = $(MOD_MAJOR_VERSION)
241 include $(MOD_DEPTH)/config/autoconf.mk
245 ifeq ($(OS_ARCH),WINNT)
247 -OS_LIBS = -ladvapi32 -lwsock32 -lwinmm
248 +OS_LIBS = -ladvapi32 -lws2_32 -lmswsock -lwinmm
250 -OS_LIBS = advapi32.lib wsock32.lib winmm.lib
251 +OS_LIBS = advapi32.lib ws2_32.lib mswsock.lib winmm.lib
256 include $(srcdir)/bthreads/objs.mk
260 -LIBRARY_VERSION = $(MOD_MAJOR_VERSION)
262 RELEASE_LIBS = $(TARGETS)
264 --- a/a/a/nspr/pr/src/md/windows/ntgc.c 2010-11-30 00:26:19.000000000 +0100
265 +++ a/a/a/nspr/pr/src/md/windows/ntgc.c 2012-03-22 11:24:22.140097261 +0100
268 PRWord *_MD_HomeGCRegisters(PRThread *t, int isCurrent, int *np)
271 +#if defined(_X86_) && (!defined(_AMD64_))
273 context.ContextFlags = CONTEXT_INTEGER;
275 --- a/a/a/nspr/tools/Makefile.in 2008-05-04 00:28:44.000000000 +0200
276 +++ a/a/a/nspr/tools/Makefile.in 2012-03-22 11:24:22.140097261 +0100
278 echo winsock.lib >>w16link
281 - link $(LDOPTS) $< $(LIBPR) $(LIBPLC) wsock32.lib -out:$@
282 + link $(LDOPTS) $< $(LIBPR) $(LIBPLC) ws2_32.lib mswsock.lib -out:$@
285 ifeq ($(OS_ARCH),OS2)