[project @ 2005-01-31 14:57:36 by simonpj]
authorsimonpj <unknown>
Mon, 31 Jan 2005 14:57:36 +0000 (14:57 +0000)
committersimonpj <unknown>
Mon, 31 Jan 2005 14:57:36 +0000 (14:57 +0000)
Compile utilities and lib/compat with GhcHcOpts, in case it is profiled

ghc/utils/runghc/Makefile

index d6fc169..2a1de5c 100644 (file)
@@ -10,4 +10,9 @@ SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR)
 SRC_HC_OPTS += -i$(GHC_LIB_COMPAT_DIR)
 SRC_LD_OPTS += -L$(GHC_LIB_COMPAT_DIR) -lghccompat
 
+# This is required because libghccompat.a must be built with
+# $(GhcHcOpts) because it is linked to the compiler, and hence
+# we must also build with $(GhcHcOpts) here:
+SRC_HC_OPTS += $(GhcHcOpts)
+
 include $(TOP)/mk/target.mk