зеркало из https://github.com/mozilla/pjs.git
Bugzilla bug 249782: make NSPR compile with Microsoft Visual Studio 2005.
The -DEBUGTYPE flag is no longer supported. Since -DEBUGTYPE:CV is the default, we simply delete it. We added support for VC 5.0 (MSC_VER=1100) back. The patch is contributed by Stephen Walker <sdwalker@myrealbox.com>. r=wtc. Modified Files: configure configure.in config/rules.mk lib/msgc/tests/Makefile.in lib/prstreams/tests/testprstrm/Makefile.in lib/tests/Makefile.in lib/tests/windows/makefile pr/src/cplus/tests/Makefile.in pr/src/misc/Makefile.in tools/Makefile.in
This commit is contained in:
Родитель
686a010c8b
Коммит
0db90448fd
|
@ -140,7 +140,7 @@ ifeq (,$(filter-out WINNT OS2,$(OS_ARCH)))
|
|||
TARGETS = $(LIBRARY) $(SHARED_LIBRARY) $(IMPORT_LIBRARY)
|
||||
ifndef BUILD_OPT
|
||||
ifdef MSC_VER
|
||||
ifneq ($(MSC_VER),1200)
|
||||
ifneq (,$(filter-out 1100 1200,$(MSC_VER)))
|
||||
TARGETS += $(SHARED_LIB_PDB)
|
||||
endif
|
||||
endif
|
||||
|
|
|
@ -3824,8 +3824,8 @@ EOF
|
|||
fi
|
||||
|
||||
if test -n "$MOZ_DEBUG"; then
|
||||
DLLFLAGS="$DLLFLAGS -DEBUG -DEBUGTYPE:CV"
|
||||
LDFLAGS="$LDFLAGS -DEBUG -DEBUGTYPE:CV"
|
||||
DLLFLAGS="$DLLFLAGS -DEBUG"
|
||||
LDFLAGS="$LDFLAGS -DEBUG"
|
||||
fi
|
||||
|
||||
if test "$OS_TARGET" = "WINNT"; then
|
||||
|
@ -3877,7 +3877,7 @@ EOF
|
|||
fi
|
||||
|
||||
OS_DLLFLAGS="-nologo -DLL -SUBSYSTEM:WINDOWS"
|
||||
if test "$MSC_VER" = "1200" -a -z "$MOZ_DEBUG_SYMBOLS"; then
|
||||
if test "$MSC_VER" -le "1200" -a -z "$MOZ_DEBUG_SYMBOLS"; then
|
||||
OS_DLLFLAGS="$OS_DLLFLAGS -PDB:NONE"
|
||||
fi
|
||||
|
||||
|
|
|
@ -1301,8 +1301,8 @@ case "$target" in
|
|||
fi
|
||||
|
||||
if test -n "$MOZ_DEBUG"; then
|
||||
DLLFLAGS="$DLLFLAGS -DEBUG -DEBUGTYPE:CV"
|
||||
LDFLAGS="$LDFLAGS -DEBUG -DEBUGTYPE:CV"
|
||||
DLLFLAGS="$DLLFLAGS -DEBUG"
|
||||
LDFLAGS="$LDFLAGS -DEBUG"
|
||||
fi
|
||||
|
||||
if test "$OS_TARGET" = "WINNT"; then
|
||||
|
@ -1342,7 +1342,7 @@ case "$target" in
|
|||
fi
|
||||
|
||||
OS_DLLFLAGS="-nologo -DLL -SUBSYSTEM:WINDOWS"
|
||||
if test "$MSC_VER" = "1200" -a -z "$MOZ_DEBUG_SYMBOLS"; then
|
||||
if test "$MSC_VER" -le "1200" -a -z "$MOZ_DEBUG_SYMBOLS"; then
|
||||
OS_DLLFLAGS="$OS_DLLFLAGS -PDB:NONE"
|
||||
fi
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ ifeq ($(OS_TARGET), WIN16)
|
|||
LIBPLC = $(dist_libdir)/plc$(NSPR_VERSION).lib
|
||||
LIBGC= $(dist_libdir)/msgc$(GC_VERSION).lib
|
||||
else
|
||||
LDOPTS = -NOLOGO -DEBUG -DEBUGTYPE:CV -INCREMENTAL:NO
|
||||
LDOPTS = -NOLOGO -DEBUG -INCREMENTAL:NO
|
||||
LIBPR = $(dist_libdir)/libnspr$(NSPR_VERSION).$(LIB_SUFFIX)
|
||||
LIBPLC = $(dist_libdir)/libplc$(NSPR_VERSION).$(LIB_SUFFIX)
|
||||
LIBGC= $(dist_libdir)/libmsgc$(GC_VERSION).$(LIB_SUFFIX)
|
||||
|
|
|
@ -79,7 +79,7 @@ ifeq ($(OS_TARGET), WIN16)
|
|||
LIBPR = $(dist_libdir)/nspr$(MOD_MAJOR_VERSION).lib
|
||||
LIBPRSTRMS = $(dist_libdir)/prstrms$(MOD_MAJOR_VERSION).lib
|
||||
else
|
||||
LDOPTS = -NOLOGO -DEBUG -DEBUGTYPE:CV -INCREMENTAL:NO
|
||||
LDOPTS = -NOLOGO -DEBUG -INCREMENTAL:NO
|
||||
ifeq ($(OS_TARGET), WIN95)
|
||||
LIBPR = $(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)
|
||||
LIBPRSTRMS = $(dist_libdir)/prstrms$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)
|
||||
|
|
|
@ -88,7 +88,7 @@ ifeq ($(OS_TARGET), WIN16)
|
|||
LIBPLC= $(dist_libdir)/plc$(MOD_MAJOR_VERSION).lib
|
||||
LIBPLDS= $(dist_libdir)/plds$(MOD_MAJOR_VERSION).lib
|
||||
else
|
||||
LDOPTS = -NOLOGO -DEBUG -DEBUGTYPE:CV -INCREMENTAL:NO
|
||||
LDOPTS = -NOLOGO -DEBUG -INCREMENTAL:NO
|
||||
ifeq ($(OS_TARGET), WIN95)
|
||||
LIBPR = $(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)
|
||||
LIBPLC= $(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)
|
||||
|
|
|
@ -49,7 +49,7 @@ ifeq ($(OS_TARGET), WIN16)
|
|||
LIBPLC= $(DIST)/lib/plc$(MOD_VERSION).lib
|
||||
LIBPLDS= $(DIST)/lib/plds$(MOD_VERSION).lib
|
||||
else
|
||||
LDOPTS = -NOLOGO -DEBUG -DEBUGTYPE:CV -INCREMENTAL:NO
|
||||
LDOPTS = -NOLOGO -DEBUG -INCREMENTAL:NO
|
||||
ifeq ($(OS_TARGET), WIN95)
|
||||
LIBPR = $(DIST)/lib/nspr$(MOD_VERSION).$(LIB_SUFFIX)
|
||||
LIBPLC= $(DIST)/lib/plc$(MOD_VERSION).$(LIB_SUFFIX)
|
||||
|
@ -64,7 +64,7 @@ endif
|
|||
|
||||
TARGETS = $(OBJDIR)/winevent.exe
|
||||
OS_CFLAGS = $(OS_EXE_CFLAGS)
|
||||
LDOPTS = -NOLOGO -DEBUG -DEBUGTYPE:CV -INCREMENTAL:NO
|
||||
LDOPTS = -NOLOGO -DEBUG -INCREMENTAL:NO
|
||||
LDFLAGS += -DEBUG
|
||||
LIBPR += $(LIBPLDS)
|
||||
LIBPR += kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
|
||||
|
|
|
@ -132,7 +132,7 @@ ifeq ($(OS_TARGET), WIN16)
|
|||
LIBPR = $(dist_libdir)/nspr$(MOD_MAJOR_VERSION).lib
|
||||
LIBPL = $(dist_libdir)/plc$(MOD_MAJOR_VERSION).lib
|
||||
else
|
||||
LDOPTS = -NOLOGO -DEBUG -DEBUGTYPE:CV -INCREMENTAL:NO
|
||||
LDOPTS = -NOLOGO -DEBUG -INCREMENTAL:NO
|
||||
LIBPR = $(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)
|
||||
LIBPL = $(dist_libdir)/libplc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)
|
||||
endif
|
||||
|
|
|
@ -93,7 +93,11 @@ include $(topsrcdir)/config/rules.mk
|
|||
ifeq ($(NS_USE_GCC)_$(OS_ARCH),_WINNT)
|
||||
$(OBJDIR)/prdtoa.$(OBJ_SUFFIX): prdtoa.c
|
||||
@$(MAKE_OBJDIR)
|
||||
ifeq (,$(filter-out 1100 1200 1300 1310,$(MSC_VER)))
|
||||
$(CC) -Fo$@ -c $(CFLAGS) -Op $(call abspath,$<)
|
||||
else
|
||||
$(CC) -Fo$@ -c $(CFLAGS) -fp:precise $(call abspath,$<)
|
||||
endif
|
||||
endif
|
||||
|
||||
#
|
||||
|
|
|
@ -83,7 +83,7 @@ ifeq ($(OS_TARGET), WIN16)
|
|||
LIBPR = $(dist_libdir)/nspr$(NSPR_VERSION).lib
|
||||
LIBPLC= $(dist_libdir)/plc$(NSPR_VERSION).lib
|
||||
else
|
||||
LDOPTS = -NOLOGO -DEBUG -DEBUGTYPE:CV -INCREMENTAL:NO
|
||||
LDOPTS = -NOLOGO -DEBUG -INCREMENTAL:NO
|
||||
LIBPR = $(dist_libdir)/libnspr$(NSPR_VERSION).$(LIB_SUFFIX)
|
||||
LIBPLC= $(dist_libdir)/libplc$(NSPR_VERSION).$(LIB_SUFFIX)
|
||||
endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче