summaryrefslogtreecommitdiff
path: root/compiler/ghc.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-08-19 23:37:43 +0000
committerIan Lynagh <igloo@earth.li>2010-08-19 23:37:43 +0000
commit22294cdadb1ebb72aaffe3922010b810fec0530d (patch)
treed5b95f7bc5c523c8127c2c8a2deb0ec90cb98cc1 /compiler/ghc.mk
parent2b1d153a60b9f8720bda74180d50a0aed2d02af2 (diff)
downloadhaskell-22294cdadb1ebb72aaffe3922010b810fec0530d.tar.gz
Remove some duplication of C flags
We now use the CONF_CC_OPTS_STAGEn C flags in machdepCCOpts, rather than repeating them there.
Diffstat (limited to 'compiler/ghc.mk')
-rw-r--r--compiler/ghc.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/ghc.mk b/compiler/ghc.mk
index 60123e9162..7eaa1587cf 100644
--- a/compiler/ghc.mk
+++ b/compiler/ghc.mk
@@ -70,6 +70,10 @@ compiler/stage%/build/Config.hs : mk/config.mk mk/project.mk | $$(dir $$@)/.
@echo 'cBooterVersion = "$(GhcVersion)"' >> $@
@echo 'cStage :: String' >> $@
@echo 'cStage = show (STAGE :: Int)' >> $@
+ @echo 'cCcOpts :: [String]' >> $@
+ @echo 'cCcOpts = words "$(CONF_CC_OPTS_STAGE$*)"' >> $@
+ @echo 'cLdOpts :: [String]' >> $@
+ @echo 'cLdOpts = words "$(CONF_LD_OPTS_STAGE$*)"' >> $@
@echo 'cIntegerLibrary :: String' >> $@
@echo 'cIntegerLibrary = "$(INTEGER_LIBRARY)"' >> $@
@echo 'cSplitObjs :: String' >> $@