# This causes libghccompat.a to be used:
include $(GHC_COMPAT_DIR)/compat.mk
+SRC_HC_OPTS += $(PACKAGE_CABAL)
+
# 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
INSTALL_LIBEXECS += $(HS_PROG)
endif
-# -----------------------------------------------------------------------------=
+# -----------------------------------------------------------------------------
# Create the Version.hs file
VERSION_HS = Version.hs
$(MAKE) INSTALLING=0 BIN_DIST=0 $(MFLAGS) $@
endif
+ifeq "$(INSTALLING)$(HOSTPLATFORM)" "0i386-unknown-mingw32"
+all :: $(INPLACE_SCRIPT_PROG).bat
+
+$(INPLACE_SCRIPT_PROG).bat :
+ echo '@call $(subst /,\\,$(FPTOOLS_TOP_ABS)/utils/ghc-pkg/$(HS_PROG)) --global-conf $(PKGCONF) %*' >> $@
+ chmod 755 $@
+endif
+
# ghc-pkg is needed to boot in rts/ and library dirs
# Do a recursive 'make all' after generating dependencies, because this
# will work with 'make -j'.