id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
3842,build system does not pass selected gcc when configuring unix package,duncan,,"The build system's top level `./configure` has a flag `--with-gcc=`. All the library packages except the unix package use the same gcc. The unix package either does not get passed the selected location of gcc, or it ignores it. The ./configure for the unix package picks up the gcc from the $PATH.

This can be reproduced by putting a dummy gcc in your $PATH that is just a symlink to `/bin/false` and using a top level `./configure --with-gcc=`

When it gets to building the unix package it picks up the gcc from the $PATH:
{{{
Configuring unix-2.4.0.0...
configure: WARNING: unrecognized options: --with-compiler, --with-cc
checking for gcc... gcc
checking whether the C compiler works... no
}}}

This bug is platform independent but it's most relevant on Solaris where the default gcc is not usable by ghc.",bug,closed,normal,,Build System,6.12.1,duplicate,,,Unknown/Multiple,Unknown/Multiple,Building GHC failed,,,,,
