[commit: packages/directory] master: Remove obsolete `--with-cc` flag from configure.ac (298529b)

git at git.haskell.org git at git.haskell.org
Fri Dec 18 09:53:11 UTC 2015


Repository : ssh://git@git.haskell.org/directory

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/298529bf8adc38ed602eab300c63bbc68510e5a3/directory

>---------------------------------------------------------------

commit 298529bf8adc38ed602eab300c63bbc68510e5a3
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Mon Dec 14 07:58:30 2015 +0100

    Remove obsolete `--with-cc` flag from configure.ac
    
    This non-standard flag was used previously by GHC's build-system to set the `CC` variable.
    
    See https://phabricator.haskell.org/D1608 for more details


>---------------------------------------------------------------

298529bf8adc38ed602eab300c63bbc68510e5a3
 configure.ac | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 448e7b2..a620ec4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,14 +16,11 @@ set_with_gcc() {
     esac
 }
 
-# inherit the C compiler from Cabal but allow it to be overridden by --with-cc
-# because Cabal puts its own flags at the end
+# Legacy support for setting the C compiler with Cabal<1.24
+# Newer versions use Autoconf's native `CC=...` facility
 AC_ARG_WITH([gcc],
             [C compiler],
             [set_with_gcc])
-AC_ARG_WITH([cc],
-            [C compiler],
-            [CC=$withval])
 # avoid warnings when run via Cabal
 AC_ARG_WITH([compiler],
             [GHC compiler],



More information about the ghc-commits mailing list