update dev300-m58
[ooovba.git] / nss / nss_3_12_3.patch.mingw
blob942b44c6997f3cd088e98ea4501a8c93faa9868c
1 --- misc/mozilla/nsprpub/config/autoconf.mk.in  2007-06-10 01:28:46.000000000 +0900
2 +++ misc/build/mozilla/nsprpub/config/autoconf.mk.in    2009-07-26 19:50:43.845875000 +0900
3 @@ -22,6 +22,7 @@
4  RELEASE_OBJDIR_NAME = @RELEASE_OBJDIR_NAME@
5  OBJDIR_NAME    = @OBJDIR_NAME@
6  OBJDIR         = @OBJDIR@
7 +LIB_PREFIX     = @LIB_PREFIX@
8  OBJ_SUFFIX     = @OBJ_SUFFIX@
9  LIB_SUFFIX     = @LIB_SUFFIX@
10  DLL_SUFFIX     = @DLL_SUFFIX@
11 --- misc/mozilla/nsprpub/config/rules.mk        2009-03-25 07:49:17.000000000 +0900
12 +++ misc/build/mozilla/nsprpub/config/rules.mk  2009-07-26 19:50:44.002125000 +0900
13 @@ -113,9 +113,9 @@
14  # other platforms do not.
15  #
16  ifeq (,$(filter-out WIN95 OS2,$(OS_TARGET)))
17 -LIBRARY                = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION)_s.$(LIB_SUFFIX)
18 +LIBRARY                = $(OBJDIR)/$(LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)_s.$(LIB_SUFFIX)
19  SHARED_LIBRARY = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
20 -IMPORT_LIBRARY = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).$(LIB_SUFFIX)
21 +IMPORT_LIBRARY = $(OBJDIR)/$(LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(LIB_SUFFIX)
22  SHARED_LIB_PDB = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).pdb
23  else
24  LIBRARY                = $(OBJDIR)/lib$(LIBRARY_NAME)$(LIBRARY_VERSION)_s.$(LIB_SUFFIX)
25 --- misc/mozilla/nsprpub/configure      2008-12-05 09:46:50.000000000 +0900
26 +++ misc/build/mozilla/nsprpub/configure        2009-07-26 19:50:45.158375000 +0900
27 @@ -2767,6 +2767,7 @@
28  LIB_SUFFIX=a
29  DLL_SUFFIX=so
30  ASM_SUFFIX=s
31 +LIB_PREFIX=lib
32  MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
33  PR_MD_ASFILES=
34  PR_MD_CSRCS=
35 @@ -4005,6 +4006,7 @@
36          OBJ_SUFFIX=obj
37          LIB_SUFFIX=lib
38          DLL_SUFFIX=dll
39 +        LIB_PREFIX=
41          # Determine compiler version
42          CC_VERSION=`"${CC}" -v 2>&1 | grep Version | sed -e 's|.* Version ||' -e 's| .*||'`
43 @@ -6169,6 +6171,7 @@
44  s%@LIB_SUFFIX@%$LIB_SUFFIX%g
45  s%@DLL_SUFFIX@%$DLL_SUFFIX%g
46  s%@ASM_SUFFIX@%$ASM_SUFFIX%g
47 +s%@LIB_PREFIX@%$LIB_PREFIX%g
48  s%@MKSHLIB@%$MKSHLIB%g
49  s%@DSO_CFLAGS@%$DSO_CFLAGS%g
50  s%@DSO_LDOPTS@%$DSO_LDOPTS%g
51 --- misc/mozilla/nsprpub/pr/src/Makefile.in     2008-06-08 05:25:59.000000000 +0900
52 +++ misc/build/mozilla/nsprpub/pr/src/Makefile.in       2009-07-26 20:57:15.324875000 +0900
53 @@ -195,7 +195,7 @@
55  ifeq ($(OS_ARCH),WINNT)
56  ifdef NS_USE_GCC
57 -OS_LIBS                = -ladvapi32 -lwsock32 -lwinmm
58 +OS_LIBS                += -ladvapi32 -lwsock32 -lwinmm
59  else
60  OS_LIBS                = advapi32.lib wsock32.lib winmm.lib
61  endif
62 --- misc/mozilla/security/coreconf/WIN32.mk     2009-04-01 09:49:48.000000000 +0900
63 +++ misc/build/mozilla/security/coreconf/WIN32.mk       2009-07-26 19:50:45.252125000 +0900
64 @@ -43,8 +43,8 @@
65  DEFAULT_COMPILER = cl
67  ifdef NS_USE_GCC
68 -       CC           = gcc
69 -       CCC          = g++
70 +#      CC           = gcc
71 +       CCC          = $(CXX)
72         LINK         = ld
73         AR           = ar
74         AR          += cr $@
75 --- misc/mozilla/security/coreconf/WIN95.mk     2009-02-14 14:51:10.000000000 +0900
76 +++ misc/build/mozilla/security/coreconf/WIN95.mk       2009-07-26 19:50:45.377125000 +0900
77 @@ -44,4 +44,8 @@
78  DEFINES += -DWIN95
80  # WINNT uses the lib prefix, Win95 and WinCE don't
81 -NSPR31_LIB_PREFIX = $(NULL)
82 +ifdef NS_USE_GCC
83 +  NSPR31_LIB_PREFIX = lib
84 +else
85 +  NSPR31_LIB_PREFIX = $(NULL)
86 +endif
87 --- misc/mozilla/security/coreconf/rules.mk     2009-01-21 08:30:57.000000000 +0900
88 +++ misc/build/mozilla/security/coreconf/rules.mk       2009-07-26 19:50:45.689625000 +0900
89 @@ -281,8 +281,12 @@
90         fi
91  endif  # MSVC with manifest tool
92  else
93 +ifeq (,$(filter-out WIN%,$(OS_TARGET)))
94 +       $(MKPROG) -o $@ $(CFLAGS) $(OBJS) $(LDFLAGS) -Wl,--start-group $(EXTRA_LIBS) -Wl,--end-group $(EXTRA_SHARED_LIBS) $(OS_LIBS)
95 +else
96         $(MKPROG) -o $@ $(CFLAGS) $(OBJS) $(LDFLAGS) $(EXTRA_LIBS) $(EXTRA_SHARED_LIBS) $(OS_LIBS)
97  endif
98 +endif
100  get_objs:
101         @echo $(OBJS)
102 --- misc/mozilla/security/nss/Makefile  2008-12-03 08:24:39.000000000 +0900
103 +++ misc/build/mozilla/security/nss/Makefile    2009-07-26 19:50:45.845875000 +0900
104 @@ -108,7 +108,7 @@
105  NSPR_CONFIGURE_OPTS += --enable-debug-rtl
106  endif
107  ifdef NS_USE_GCC
108 -NSPR_COMPILERS = CC=gcc CXX=g++
109 +NSPR_COMPILERS = CC="$(CC)" CXX="$(CXX)"
110  endif
113 --- misc/mozilla/security/nss/cmd/crmftest/Makefile     2005-11-14 09:17:21.000000000 +0900
114 +++ misc/build/mozilla/security/nss/cmd/crmftest/Makefile       2009-07-26 19:50:45.970875000 +0900
115 @@ -90,7 +90,7 @@
116  LDDIST = $(DIST)/lib
118  ifeq (,$(filter-out WIN%,$(OS_TARGET)))
119 -EXTRA_LIBS += $(LDDIST)/sectool.lib
120 +EXTRA_LIBS += $(LDDIST)/$(LIB_PREFIX)sectool.$(LIB_SUFFIX)
121  endif
123  include ../platrules.mk
124 --- misc/mozilla/security/nss/cmd/shlibsign/Makefile    2008-11-21 00:44:11.000000000 +0900
125 +++ misc/build/mozilla/security/nss/cmd/shlibsign/Makefile      2009-07-26 22:58:48.687625000 +0900
126 @@ -112,10 +112,16 @@
127         $(call core_abspath,$(OBJDIR)) $(OS_TARGET) \
128         $(call core_abspath,$(NSPR_LIB_DIR)) $(call core_abspath,$<)
129  else
130 +ifeq ($(OS_TARGET), WIN95)
131 +       sh ./sign.sh $(shell cygpath -m -a $(DIST)) \
132 +       $(shell cygpath -m -a $(OBJDIR)) $(OS_TARGET) \
133 +       $(shell cygpath -m -a $(NSPR_LIB_DIR)) $(shell cygpath -m -a $<)
134 +else
135         cd $(OBJDIR) ; sh $(SRCDIR)/sign.sh $(call core_abspath,$(DIST)) \
136         $(call core_abspath,$(OBJDIR)) $(OS_TARGET) \
137         $(call core_abspath,$(NSPR_LIB_DIR)) $(call core_abspath,$<)
138  endif
139 +endif
141  libs install :: $(CHECKLOC)
143 --- misc/mozilla/security/nss/lib/freebl/config.mk      2009-02-03 06:57:23.000000000 +0900
144 +++ misc/build/mozilla/security/nss/lib/freebl/config.mk        2009-07-26 19:50:46.127125000 +0900
145 @@ -84,10 +84,6 @@
146  RES     = $(OBJDIR)/$(LIBRARY_NAME).res
147  RESNAME = freebl.rc
149 -ifndef WINCE
150 -OS_LIBS += shell32.lib
151 -endif
153  ifdef NS_USE_GCC
154  EXTRA_SHARED_LIBS += \
155         -L$(DIST)/lib \
156 @@ -96,6 +92,10 @@
157         -lnspr4 \
158         $(NULL)
159  else # ! NS_USE_GCC
160 +ifndef WINCE
161 +OS_LIBS += shell32.lib
162 +endif
164  EXTRA_SHARED_LIBS += \
165         $(DIST)/lib/nssutil3.lib \
166         $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)nspr4.lib \