Skip to content

configure script should accept --with-gcc flag instead of --with-cc - #104

Merged
tibbe merged 1 commit into
haskell:masterfrom
hreinhardt:master
Sep 8, 2013
Merged

tibbe merged 1 commit into
haskell:masterfrom
hreinhardt:master

Conversation

@hreinhardt

Copy link
Copy Markdown
Contributor

This should prevent problems like #103
The "with-gcc" is hardcoded into Cabal, so it's probably easier to change our configure script than to change Cabal.

@gregorycollins

Copy link
Copy Markdown
Member

@tibbe ping

@tibbe

tibbe commented Sep 6, 2013

Copy link
Copy Markdown
Contributor

I'm afraid I know too little about autoconf to even understand what implications this has. Is the issue that Cabal passes --with-gcc when it compiles the network package if you pass --with-gcc to cabal configure?

@hreinhardt

Copy link
Copy Markdown
Contributor Author

Even if you just run cabal configure with no arguments, Cabal always passes --with-gcc to configure scripts: https://github.com/haskell/cabal/blob/master/Cabal/Distribution/Simple.hs#L651
I think it makes sense to respect that flag and use the gcc that Cabal asks us to use.

One possible risk is that someone today is explicitly passing the --with-cc option to cabal configure. That could be broken by this change.

@tibbe
tibbe merged commit d708058 into haskell:master Sep 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants