Repository navigation
Use standard mechanism to tell ./configure the c-compiler - #2946
Conversation
Most Autoconf configure scripts don't support the non-standard `--with-gcc` flag, and there does not seem to be any good reason to do so, since Autoconf has already a proper way to set the c-compiler: Either via the `CC` environment variable, or (with higher precedence) by passing a commandline argument of the form `CC=clang-3.8`. This patch simply replaces the previous non-standard `--with-gcc=clang-3.8` argument (which was clearly misnamed to begin with) by a `CC=clang-3.8` command-line argument to the `configure` script.
|
For the record, |
|
+1, but don't we need to keep |
|
I don't think we need to keep So, if we got such a configure script, passing let's the configure script hang at compiler detection, and fill up And before that, I refactored a PS: I'm sure you've noticed something like or which you see for most |
Use standard mechanism to tell ./configure the c-compiler
|
OK, merged. I guess we should also get rid of |
|
@23Skidoo yeah, replacing I've done a quick survey of Hackage, it seems there's only very few packages actually (I counted only 6) implementing in there to shut up that warning... ;-) the remaining 3 are In any case, I think we should start passing |
Created a ticket for this. |
The non-idiomatic `--with-cc` flag was added via 5c789e4 However, `--with-cc` seems rather fragile and support for `--with-cc` needs to be added explicitly to autoconf-based Cabal packages. The `CC=` flag, however, is supported natively by GNU Autoconf, so let's use the standard facility for that. Relatedly, Cabal prior to version 1.24 used a similiar flag `--with-gcc=...`, but starting with Cabal-1.24 this has been changed to use `CC=...` instead as well (see haskell/cabal#2946) This also updates a few submodules removing the now obsolete `--with-cc` flag support. Reviewed By: trofi, thomie, erikd Differential Revision: https://phabricator.haskell.org/D1608
Most Autoconf configure scripts don't support the non-standard
--with-gccflag, and there does not seem to be any good reason to do so, since
Autoconf has already a proper way to set the c-compiler:
Either via the
CCenvironment variable, or (with higher precedence)by passing a commandline argument of the form
CC=clang-3.8.This patch simply replaces the previous non-standard
--with-gcc=clang-3.8argument (which was clearly misnamed to begin with) by a
CC=clang-3.8command-line argument to the
configurescript.