Make the --info values printable with "ghc --print-foo"; trac #3122
[ghc-hetmet.git] / ghc / ghc.mk
index 8f2c741..a17a47e 100644 (file)
@@ -33,8 +33,9 @@ ghc_stage2_HC_OPTS += -threaded
 ghc_stage3_HC_OPTS += -threaded
 endif
 
-# XXX ToDp
-# ifeq "$(GhcProfiled)" "YES"
+ifeq "$(GhcProfiled)" "YES"
+ghc_stage2_HC_OPTS += -prof
+endif
 
 ghc_stage1_MODULES = Main
 
@@ -150,7 +151,7 @@ install: install_ghc_link
 .PNONY: install_ghc_link
 install_ghc_link: 
        "$(RM)" $(RM_OPTS) $(DESTDIR)$(bindir)/ghc
-       "$(LN_S)" ghc-$(ProjectVersion) $(DESTDIR)$(bindir)/ghc
+       $(LN_S) ghc-$(ProjectVersion) $(DESTDIR)$(bindir)/ghc
 else
 # On Windows we install the main binary as $(bindir)/ghc.exe
 # To get ghc-<version>.exe we have a little C program in driver/ghc