changeset 36859:d4c0b7a5bc48

(DEBUG_LINK): New macro. (LINK_FLAGS): Use it.
author Andrew Innes <andrewi@gnu.org>
date Sun, 18 Mar 2001 16:55:28 +0000
parents f6aff87320dd
children 7bcec61bdbde
files nt/gmake.defs nt/nmake.defs
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/nt/gmake.defs	Sun Mar 18 16:54:35 2001 +0000
+++ b/nt/gmake.defs	Sun Mar 18 16:55:28 2001 +0000
@@ -226,8 +226,10 @@
 
 ifdef NODEBUG
 DEBUG_FLAG = 
+DEBUG_LINK =
 else
 DEBUG_FLAG = -g
+DEBUG_LINK = -g
 endif
 
 ifdef NOCYGWIN
@@ -248,7 +250,7 @@
 ERROR Unknown architecture type "$(ARCH)".
 endif
 
-LINK_FLAGS	= $(ARCH_LDFLAGS) $(NOCYGWIN) $(USER_LDFLAGS)
+LINK_FLAGS	= $(ARCH_LDFLAGS) $(DEBUG_LINK) $(NOCYGWIN) $(USER_LDFLAGS)
 
 .DEFAULT:
 
--- a/nt/nmake.defs	Sun Mar 18 16:54:35 2001 +0000
+++ b/nt/nmake.defs	Sun Mar 18 16:55:28 2001 +0000
@@ -161,8 +161,10 @@
 
 !ifdef NODEBUG
 DEBUG_FLAG = 
+DEBUG_LINK = 
 !else
 DEBUG_FLAG = -Zi
+DEBUG_LINK = -debug:full -debugtype:both
 !endif
 
 !if "$(ARCH)" == "i386"
@@ -200,7 +202,7 @@
 !endif
 !endif
 
-LINK_FLAGS	= $(ARCH_LDFLAGS) $(USER_LDFLAGS)
+LINK_FLAGS	= $(ARCH_LDFLAGS) $(DEBUG_LINK) $(USER_LDFLAGS)
 
 # From MSVC 5.0 onwards, it seem base relocation information is not included,
 # at least in release builds.  We need to ensure the reloc info is included