Add a GhcDebugged build setting, for whether GHC is linked with -debug
authorIan Lynagh <igloo@earth.li>
Fri, 17 Aug 2007 20:36:07 +0000 (20:36 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 17 Aug 2007 20:36:07 +0000 (20:36 +0000)
compiler/Makefile
compiler/Makefile.ghcbin
mk/config.mk.in

index 4023d72..d0c68ab 100644 (file)
@@ -433,6 +433,9 @@ endif
 ifeq "$(GhcProfiled)" "YES"
 SRC_LD_OPTS += -prof
 endif
+ifeq "$(GhcDebugged)" "YES"
+SRC_LD_OPTS += -debug
+endif
 
 ALL_DIRS += ghci
 
index e75aad6..7acf0e8 100644 (file)
@@ -45,6 +45,9 @@ endif
 ifeq "$(GhcProfiled)" "YES"
 SRC_HC_OPTS += -prof
 endif
+ifeq "$(GhcDebugged)" "YES"
+SRC_LD_OPTS += -debug
+endif
 
 odir=stage$(stage)
 
index b602569..0feecbd 100644 (file)
@@ -224,6 +224,7 @@ else
 GhcThreaded=NO
 endif
 GhcProfiled=NO
+GhcDebugged=NO
 
 # Build a compiler that will build *unregisterised* libraries and
 # binaries by default.  Unregisterised code is supposed to compile and