# we must also build with $(GhcHcOpts) here:
SRC_HC_OPTS += $(GhcHcOpts) $(GhcStage1HcOpts)
-ifeq "$(ghc_ge_504)" "NO"
-SRC_HC_OPTS += -package lang -package util -package text
-endif
-
# On Windows, ghc-pkg is a standalone program
# ($bindir/ghc-pkg.exe), whereas on Unix it needs a wrapper script
# to pass the appropriate flag to the real binary
$(INPLACE_SCRIPT_PROG).bat :
echo '@call $(subst /,\,$(FPTOOLS_TOP_ABS_PLATFORM)/utils/ghc-pkg/$(HS_PROG)) --global-conf $(PKGCONF) %*' >> $@
chmod 755 $@
+
+CLEAN_FILES += $(INPLACE_SCRIPT_PROG).bat
endif
# ghc-pkg is needed to boot in rts/ and library dirs