Add a GhcDebugged build setting, for whether GHC is linked with -debug
[ghc-hetmet.git] / compiler / Makefile.ghcbin
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)