Where we use $(GhcHcOpts), also add $(GhcStage1HcOpts)
[ghc-hetmet.git] / utils / ghc-pkg / Makefile
index c8a075d..9ad63cb 100644 (file)
@@ -15,7 +15,7 @@ include $(GHC_COMPAT_DIR)/compat.mk
 # 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)
+SRC_HC_OPTS += $(GhcHcOpts) $(GhcStage1HcOpts)
 
 ifeq "$(ghc_ge_504)" "NO"
 SRC_HC_OPTS +=  -package lang -package util -package text
@@ -33,7 +33,7 @@ HS_PROG           = ghc-pkg.bin
 INSTALL_LIBEXECS += $(HS_PROG)
 endif
 
-# -----------------------------------------------------------------------------=
+# -----------------------------------------------------------------------------
 # Create the Version.hs file
 
 VERSION_HS = Version.hs