# HG changeset patch # User Andrew Innes # Date 984934528 0 # Node ID d4c0b7a5bc480c251781b5b20b8203ec6493bffa # Parent f6aff87320dd02e3c974bb22d4a7851eb4369aed (DEBUG_LINK): New macro. (LINK_FLAGS): Use it. diff -r f6aff87320dd -r d4c0b7a5bc48 nt/gmake.defs --- 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: diff -r f6aff87320dd -r d4c0b7a5bc48 nt/nmake.defs --- 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