xref: /aoo41x/main/nss/nss.patch.mingw (revision c38ced1b)
1*c38ced1bSHerbert Dürr--- misc/nss-3.13.6/mozilla/nsprpub/config/autoconf.mk.in	2009-03-04 07:04:23.000000000 +0900
2*c38ced1bSHerbert Dürr+++ misc/build/nss-3.13.6/mozilla/nsprpub/config/autoconf.mk.in	2010-06-17 08:42:08.010625000 +0900
3cdf0e10cSrcweir@@ -22,6 +22,7 @@
4cdf0e10cSrcweir RELEASE_OBJDIR_NAME = @RELEASE_OBJDIR_NAME@
5cdf0e10cSrcweir OBJDIR_NAME	= @OBJDIR_NAME@
6cdf0e10cSrcweir OBJDIR		= @OBJDIR@
7cdf0e10cSrcweir+LIB_PREFIX	= @LIB_PREFIX@
8cdf0e10cSrcweir OBJ_SUFFIX	= @OBJ_SUFFIX@
9cdf0e10cSrcweir LIB_SUFFIX	= @LIB_SUFFIX@
10cdf0e10cSrcweir DLL_SUFFIX	= @DLL_SUFFIX@
11*c38ced1bSHerbert Dürr--- misc/nss-3.13.6/mozilla/nsprpub/config/rules.mk	2009-12-10 06:24:37.000000000 +0900
12*c38ced1bSHerbert Dürr+++ misc/build/nss-3.13.6/mozilla/nsprpub/config/rules.mk	2010-06-17 08:42:08.057500000 +0900
13cdf0e10cSrcweir@@ -113,9 +113,9 @@
14cdf0e10cSrcweir # other platforms do not.
15cdf0e10cSrcweir #
16cdf0e10cSrcweir ifeq (,$(filter-out WIN95 WINCE WINMO OS2,$(OS_TARGET)))
17cdf0e10cSrcweir-LIBRARY		= $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION)_s.$(LIB_SUFFIX)
18cdf0e10cSrcweir+LIBRARY		= $(OBJDIR)/$(LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)_s.$(LIB_SUFFIX)
19cdf0e10cSrcweir SHARED_LIBRARY	= $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
20cdf0e10cSrcweir-IMPORT_LIBRARY	= $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).$(LIB_SUFFIX)
21cdf0e10cSrcweir+IMPORT_LIBRARY	= $(OBJDIR)/$(LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(LIB_SUFFIX)
22cdf0e10cSrcweir SHARED_LIB_PDB	= $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).pdb
23cdf0e10cSrcweir else
24cdf0e10cSrcweir LIBRARY		= $(OBJDIR)/lib$(LIBRARY_NAME)$(LIBRARY_VERSION)_s.$(LIB_SUFFIX)
25*c38ced1bSHerbert Dürr--- misc/nss-3.13.6/mozilla/nsprpub/configure	2010-02-09 03:41:35.000000000 +0900
26*c38ced1bSHerbert Dürr+++ misc/build/nss-3.13.6/mozilla/nsprpub/configure	2010-06-17 08:42:10.000000000 +0900
27cdf0e10cSrcweir@@ -2770,6 +2770,7 @@
28cdf0e10cSrcweir LIB_SUFFIX=a
29cdf0e10cSrcweir DLL_SUFFIX=so
30cdf0e10cSrcweir ASM_SUFFIX=s
31cdf0e10cSrcweir+LIB_PREFIX=lib
32cdf0e10cSrcweir MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
33cdf0e10cSrcweir PR_MD_ASFILES=
34cdf0e10cSrcweir PR_MD_CSRCS=
35cdf0e10cSrcweir@@ -4000,6 +4001,7 @@
36cdf0e10cSrcweir         OBJ_SUFFIX=obj
37cdf0e10cSrcweir         LIB_SUFFIX=lib
38cdf0e10cSrcweir         DLL_SUFFIX=dll
39cdf0e10cSrcweir+        LIB_PREFIX=
40cdf0e10cSrcweir
41cdf0e10cSrcweir         # Determine compiler version
42cdf0e10cSrcweir         CC_VERSION=`"${CC}" -v 2>&1 | grep Version | sed -e 's|.* Version ||' -e 's| .*||'`
43cdf0e10cSrcweir@@ -6262,6 +6264,7 @@
44cdf0e10cSrcweir s%@LIB_SUFFIX@%$LIB_SUFFIX%g
45cdf0e10cSrcweir s%@DLL_SUFFIX@%$DLL_SUFFIX%g
46cdf0e10cSrcweir s%@ASM_SUFFIX@%$ASM_SUFFIX%g
47cdf0e10cSrcweir+s%@LIB_PREFIX@%$LIB_PREFIX%g
48cdf0e10cSrcweir s%@MKSHLIB@%$MKSHLIB%g
49cdf0e10cSrcweir s%@DSO_CFLAGS@%$DSO_CFLAGS%g
50cdf0e10cSrcweir s%@DSO_LDOPTS@%$DSO_LDOPTS%g
51*c38ced1bSHerbert Dürr--- misc/nss-3.13.6/mozilla/nsprpub/pr/src/Makefile.in	2009-12-19 18:06:07.000000000 +0900
52*c38ced1bSHerbert Dürr+++ misc/build/nss-3.13.6/mozilla/nsprpub/pr/src/Makefile.in	2010-06-17 08:42:08.151250000 +0900
53cdf0e10cSrcweir@@ -195,7 +195,7 @@
54cdf0e10cSrcweir
55cdf0e10cSrcweir ifeq ($(OS_ARCH),WINNT)
56cdf0e10cSrcweir ifdef NS_USE_GCC
57cdf0e10cSrcweir-OS_LIBS		= -ladvapi32 -lwsock32 -lwinmm
58cdf0e10cSrcweir+OS_LIBS		+= -ladvapi32 -lwsock32 -lwinmm
59cdf0e10cSrcweir else
60cdf0e10cSrcweir OS_LIBS		= advapi32.lib wsock32.lib winmm.lib
61cdf0e10cSrcweir endif
62*c38ced1bSHerbert Dürr--- misc/nss-3.13.6/mozilla/security/coreconf/WIN32.mk	2009-07-29 09:15:46.000000000 +0900
63*c38ced1bSHerbert Dürr+++ misc/build/nss-3.13.6/mozilla/security/coreconf/WIN32.mk	2010-06-17 08:42:08.198125000 +0900
64cdf0e10cSrcweir@@ -43,8 +43,8 @@
65cdf0e10cSrcweir DEFAULT_COMPILER = cl
66cdf0e10cSrcweir
67cdf0e10cSrcweir ifdef NS_USE_GCC
68cdf0e10cSrcweir-	CC           = gcc
69cdf0e10cSrcweir-	CCC          = g++
70cdf0e10cSrcweir+#	CC           = gcc
71cdf0e10cSrcweir+	CCC          = $(CXX)
72cdf0e10cSrcweir 	LINK         = ld
73cdf0e10cSrcweir 	AR           = ar
74cdf0e10cSrcweir 	AR          += cr $@
75*c38ced1bSHerbert Dürr--- misc/nss-3.13.6/mozilla/security/coreconf/WIN95.mk	2009-02-14 14:51:10.000000000 +0900
76*c38ced1bSHerbert Dürr+++ misc/build/nss-3.13.6/mozilla/security/coreconf/WIN95.mk	2010-06-17 08:42:08.245000000 +0900
77cdf0e10cSrcweir@@ -44,4 +44,8 @@
78cdf0e10cSrcweir DEFINES += -DWIN95
79cdf0e10cSrcweir
80cdf0e10cSrcweir # WINNT uses the lib prefix, Win95 and WinCE don't
81cdf0e10cSrcweir-NSPR31_LIB_PREFIX = $(NULL)
82cdf0e10cSrcweir+ifdef NS_USE_GCC
83cdf0e10cSrcweir+  NSPR31_LIB_PREFIX = lib
84cdf0e10cSrcweir+else
85cdf0e10cSrcweir+  NSPR31_LIB_PREFIX = $(NULL)
86cdf0e10cSrcweir+endif
87cdf0e10cSrcweir\ No newline at end of file
88*c38ced1bSHerbert Dürr--- misc/nss-3.13.6/mozilla/security/coreconf/rules.mk	2009-12-08 10:33:36.000000000 +0900
89*c38ced1bSHerbert Dürr+++ misc/build/nss-3.13.6/mozilla/security/coreconf/rules.mk	2010-06-17 08:42:08.291875000 +0900
90cdf0e10cSrcweir@@ -281,8 +281,12 @@
91cdf0e10cSrcweir 	fi
92cdf0e10cSrcweir endif	# MSVC with manifest tool
93cdf0e10cSrcweir else
94cdf0e10cSrcweir+ifeq (,$(filter-out WIN%,$(OS_TARGET)))
95cdf0e10cSrcweir+	$(MKPROG) -o $@ $(CFLAGS) $(OBJS) $(LDFLAGS) -Wl,--start-group $(EXTRA_LIBS) -Wl,--end-group $(EXTRA_SHARED_LIBS) $(OS_LIBS)
96cdf0e10cSrcweir+else
97cdf0e10cSrcweir 	$(MKPROG) -o $@ $(CFLAGS) $(OBJS) $(LDFLAGS) $(EXTRA_LIBS) $(EXTRA_SHARED_LIBS) $(OS_LIBS)
98cdf0e10cSrcweir endif
99cdf0e10cSrcweir+endif
100cdf0e10cSrcweir
101cdf0e10cSrcweir get_objs:
102cdf0e10cSrcweir 	@echo $(OBJS)
103*c38ced1bSHerbert Dürr--- misc/nss-3.13.6/mozilla/security/nss/Makefile	2009-12-09 01:47:03.000000000 +0900
104*c38ced1bSHerbert Dürr+++ misc/build/nss-3.13.6/mozilla/security/nss/Makefile	2010-06-17 08:42:08.338750000 +0900
105cdf0e10cSrcweir@@ -108,7 +108,7 @@
106cdf0e10cSrcweir NSPR_CONFIGURE_OPTS += --enable-debug-rtl
107cdf0e10cSrcweir endif
108cdf0e10cSrcweir ifdef NS_USE_GCC
109cdf0e10cSrcweir-NSPR_COMPILERS = CC=gcc CXX=g++
110cdf0e10cSrcweir+NSPR_COMPILERS = CC="$(CC)" CXX="$(CXX)"
111cdf0e10cSrcweir endif
112cdf0e10cSrcweir
113cdf0e10cSrcweir #
114*c38ced1bSHerbert Dürr--- misc/nss-3.13.6/mozilla/security/nss/cmd/crmftest/Makefile	2005-11-14 09:17:21.000000000 +0900
115*c38ced1bSHerbert Dürr+++ misc/build/nss-3.13.6/mozilla/security/nss/cmd/crmftest/Makefile	2010-06-17 08:42:08.370000000 +0900
116cdf0e10cSrcweir@@ -90,7 +90,7 @@
117cdf0e10cSrcweir LDDIST = $(DIST)/lib
118cdf0e10cSrcweir
119cdf0e10cSrcweir ifeq (,$(filter-out WIN%,$(OS_TARGET)))
120cdf0e10cSrcweir-EXTRA_LIBS += $(LDDIST)/sectool.lib
121cdf0e10cSrcweir+EXTRA_LIBS += $(LDDIST)/$(LIB_PREFIX)sectool.$(LIB_SUFFIX)
122cdf0e10cSrcweir endif
123cdf0e10cSrcweir
124cdf0e10cSrcweir include ../platrules.mk
125*c38ced1bSHerbert Dürr--- misc/nss-3.13.6/mozilla/security/nss/cmd/shlibsign/Makefile	2009-08-08 04:06:37.000000000 +0900
126*c38ced1bSHerbert Dürr+++ misc/build/nss-3.13.6/mozilla/security/nss/cmd/shlibsign/Makefile	2010-06-17 08:42:10.000000000 +0900
127cdf0e10cSrcweir@@ -115,10 +115,16 @@
128cdf0e10cSrcweir 	$(call core_abspath,$(OBJDIR)) $(OS_TARGET) \
129cdf0e10cSrcweir 	$(call core_abspath,$(NSPR_LIB_DIR)) $(call core_abspath,$<)
130cdf0e10cSrcweir else
131cdf0e10cSrcweir+ifeq ($(OS_TARGET), WIN95)
132cdf0e10cSrcweir+	sh ./sign.sh $(shell cygpath -m -a $(DIST)) \
133cdf0e10cSrcweir+	$(shell cygpath -m -a $(OBJDIR)) $(OS_TARGET) \
134cdf0e10cSrcweir+	$(shell cygpath -m -a $(NSPR_LIB_DIR)) $(shell cygpath -m -a $<)
135cdf0e10cSrcweir+else
136cdf0e10cSrcweir 	cd $(OBJDIR) ; sh $(SRCDIR)/sign.sh $(call core_abspath,$(DIST)) \
137cdf0e10cSrcweir 	$(call core_abspath,$(OBJDIR)) $(OS_TARGET) \
138cdf0e10cSrcweir 	$(call core_abspath,$(NSPR_LIB_DIR)) $(call core_abspath,$<)
139cdf0e10cSrcweir endif
140cdf0e10cSrcweir+endif
141cdf0e10cSrcweir
142cdf0e10cSrcweir libs install :: $(CHECKLOC)
143cdf0e10cSrcweir
144