This goes with the patch for #1839, #1463
[ghc-hetmet.git] / libraries / Makefile.local
1 # Local GHC-build-tree customization for Cabal makefiles.  We want to build
2 # libraries using flags that the user has put in build.mk/validate.mk.
3
4 # Careful here: including boilerplate.mk breaks things, because paths.mk and
5 # opts.mk overrides some of the variable settings in the Cabal Makefile, so
6 # we just include config.mk and custom-settings.mk.
7 TOP=../..
8 SAVE_GHC := $(GHC)
9 SAVE_AR  := $(AR)
10 SAVE_LD  := $(LD)
11 include $(TOP)/mk/config.mk
12 include $(TOP)/mk/custom-settings.mk
13 GHC := $(SAVE_GHC)
14 AR  := $(SAVE_AR)
15 LD  := $(SAVE_LD)
16
17 # Now add flags from the GHC build system to the Cabal build:
18 GHC_OPTS += $(SRC_HC_OPTS)
19 GHC_OPTS += $(GhcLibHcOpts)