Bug 448613 - Initialize nsToolkit correctly when libxul is enabled in a debug version; Av3a; r=benjamin sr=roc
--- a/toolkit/library/libxul-config.mk
+++ b/toolkit/library/libxul-config.mk
@@ -36,23 +36,27 @@
# the terms of any one of the MPL, the GPL or the LGPL.
#
# ***** END LICENSE BLOCK *****
CPPSRCS += \
nsStaticXULComponents.cpp \
$(NULL)
-ifeq ($(OS_ARCH)_$(GNU_CC),WINNT_)
+ifeq ($(OS_ARCH),WINNT)
REQUIRES += libreg widget gfx
+CPPSRCS += \
+ nsDllMain.cpp \
+ $(NULL)
+endif
+ifeq ($(OS_ARCH)_$(GNU_CC),WINNT_)
CPPSRCS += \
dlldeps.cpp \
nsGFXDeps.cpp \
- nsDllMain.cpp \
$(NULL)
RCINCLUDE = xulrunner.rc
ifndef MOZ_NATIVE_ZLIB
CPPSRCS += dlldeps-zlib.cpp
DEFINES += -DZLIB_INTERNAL
endif