From 64434bbb04976a0ce986303278e7bd4d2edb1b98 Mon Sep 17 00:00:00 2001 From: "nelson%bolyard.com" Date: Sat, 6 Jan 2007 05:47:10 +0000 Subject: [PATCH] Bug 232600. Define MOZ_DEBUG_SYMBOLS in environment to create .pdb files and install them in $DIST. r=rrelyea,wtchang --- security/coreconf/WIN32.mk | 6 +++++- security/coreconf/rules.mk | 10 ++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/security/coreconf/WIN32.mk b/security/coreconf/WIN32.mk index 3cc45aa7ad75..9d583fd6350e 100644 --- a/security/coreconf/WIN32.mk +++ b/security/coreconf/WIN32.mk @@ -149,8 +149,12 @@ else # !NS_USE_GCC USERNAME := $(subst -,_,$(USERNAME)) DEFINES += -DDEBUG -D_DEBUG -UNDEBUG -DDEBUG_$(USERNAME) DLLFLAGS += -DEBUG -OUT:"$@" + LDFLAGS += -DEBUG +ifndef MOZ_DEBUG_SYMBOLS + LDFLAGS += -PDB:NONE +endif # Purify requires /FIXED:NO when linking EXEs. - LDFLAGS += -DEBUG -PDB:NONE /FIXED:NO + LDFLAGS += /FIXED:NO endif endif # NS_USE_GCC diff --git a/security/coreconf/rules.mk b/security/coreconf/rules.mk index ef6b2dc2500d..212e132629ad 100644 --- a/security/coreconf/rules.mk +++ b/security/coreconf/rules.mk @@ -114,12 +114,22 @@ ifdef LIBRARY endif ifdef SHARED_LIBRARY $(INSTALL) -m 775 $(SHARED_LIBRARY) $(SOURCE_LIB_DIR) +ifdef MOZ_DEBUG_SYMBOLS +ifeq (,$(filter-out _WIN%,$(NS_USE_GCC)_$(OS_TARGET))) + $(INSTALL) -m 644 $(SHARED_LIBRARY:$(DLL_SUFFIX)=pdb) $(SOURCE_LIB_DIR) +endif +endif endif ifdef IMPORT_LIBRARY $(INSTALL) -m 775 $(IMPORT_LIBRARY) $(SOURCE_LIB_DIR) endif ifdef PROGRAM $(INSTALL) -m 775 $(PROGRAM) $(SOURCE_BIN_DIR) +ifdef MOZ_DEBUG_SYMBOLS +ifeq (,$(filter-out _WIN%,$(NS_USE_GCC)_$(OS_TARGET))) + $(INSTALL) -m 644 $(PROGRAM:$(PROG_SUFFIX)=.pdb) $(SOURCE_BIN_DIR) +endif +endif endif ifdef PROGRAMS $(INSTALL) -m 775 $(PROGRAMS) $(SOURCE_BIN_DIR)