Closed Bug 549266 Opened 14 years ago Closed 14 years ago

mingw GCC build fails

Categories

(NSS :: Build, defect)

3.12.5
x86
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 505731

People

(Reporter: daniel_atallah, Unassigned)

Details

There is a bug in the Makefile that prevents NSS from building using GCC on windows.

The following patch allows the build to get far enough to build a useable NSS (the build still doesn't run to completion).

Index: mozilla\security\nss\lib\freebl\config.mk
===================================================================
--- mozilla\security\nss\lib\freebl\config.mk.orig 2009-04-12 00:18:42 +0200
+++ mozilla\security\nss\lib\freebl\config.mk 2010-02-28 20:19:08 +0100
@@ -85,10 +85,14 @@
 RESNAME = freebl.rc
 
 ifndef WINCE
+ifndef NS_USE_GCC
 OS_LIBS += shell32.lib
 endif
+endif
 
 ifdef NS_USE_GCC
+OS_LIBS += -lshell32
+DEFINES += -D_WIN32_IE=0x0400
 EXTRA_SHARED_LIBS += \
        -L$(DIST)/lib \
        -L$(NSSUTIL_LIB_DIR) \
Yes, this is a duplicate of Bug 505731
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.