diff options
author | Ian Lynagh <ian@well-typed.com> | 2013-03-02 12:22:20 +0000 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2013-03-02 12:22:20 +0000 |
commit | f1fcfff5109507d065b4d317ef6b2fee16cc7fd4 (patch) | |
tree | d0e925d2e100ec511ed1ec83eda2454ccdf57c76 /rules/distdir-opts.mk | |
parent | f92a6eef59816355ddc079b1e3633047a8c90968 (diff) | |
download | haskell-f1fcfff5109507d065b4d317ef6b2fee16cc7fd4.tar.gz |
Give hsc2hs different options in different stages; fixes #7705
Based on patch from Stephen Blackheath.
Diffstat (limited to 'rules/distdir-opts.mk')
-rw-r--r-- | rules/distdir-opts.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rules/distdir-opts.mk b/rules/distdir-opts.mk index 748e27e52d..50cc05edf3 100644 --- a/rules/distdir-opts.mk +++ b/rules/distdir-opts.mk @@ -79,10 +79,11 @@ $1_$2_HSC2HS_LD_OPTS:=$$(shell for i in $$($1_$2_DIST_LD_OPTS); do echo \'--lfla endif $1_$2_ALL_HSC2HS_OPTS = \ - --cc=$$(WhatGccIsCalled) \ - --ld=$$(WhatGccIsCalled) \ + --cc=$$(CC_STAGE$3) \ + --ld=$$(CC_STAGE$3) \ $$(CONF_HSC2HS_OPTS) \ $$(SRC_HSC2HS_OPTS) \ + $$(SRC_HSC2HS_OPTS_STAGE$3) \ --cflag=-D__GLASGOW_HASKELL__=$$(if $$(filter 0,$3),$$(GhcCanonVersion),$$(ProjectVersionInt)) \ --cflag=-D$$(HostArch_CPP)_HOST_ARCH=1 \ --cflag=-D$$(HostOS_CPP)_HOST_OS=1 \ |