Commit baed2f5a authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel 🕺

Don't pass CC= explicitly to `./configure` scripts

This is a follow-up to fcc6b1de / D1608 which is made possible
by the recent Cabal update:

As `ghc-cabal` is called with `--with-gcc`, this gets passed to `./configure`
as `CC=...` argument. So we don't need to set `CC=...` ourselves explicitly again.

Prior to the changes in Cabal (pulled in via  0bf0cf93) and fcc6b1de,
`./configure` scripts would be called with a `--with-cc` argument followed by a
`--with-gcc` argument.

After this commit, `./configure` will be passed a single `CC=...` argument
constructed by the `Cabal` library.

Reviewed By: erikd

Differential Revision:
parent fcc6b1de
......@@ -111,7 +111,6 @@ ifneq "$3" "0"
$1_$2_CONFIGURE_OPTS += --with-ld="$$(LD_STAGE$3)"
$1_$2_CONFIGURE_OPTS += --configure-option=CC="$$(CC_STAGE$3)"
$1_$2_CONFIGURE_OPTS += --with-ar="$$(AR_STAGE$3)"
$1_$2_CONFIGURE_OPTS += $$(if $$(ALEX),--with-alex="$$(ALEX)")
$1_$2_CONFIGURE_OPTS += $$(if $$(HAPPY),--with-happy="$$(HAPPY)")
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment