Subject: Re: CVS commit: pkgsrc/mk/compiler
To: Roland Illig <rillig@netbsd.org>
From: Jonathan Perkin <jonathan@perkin.org.uk>
List: tech-pkg
Date: 05/18/2005 15:50:52
* On 2005-05-17 at 20:06 BST, Roland Illig wrote:

> Log Message:
> The sunpro wrapper now creates aliases for gcc and g++, too. This is
> needed because the <sys.mk> Makefile fragment sets CC?=gcc.

This worries me a little.  I can't help but think there are loads of
badly written configure scripts which see "gcc" and assume it is the
GNU compiler.  Also you'll end up with programs such as libtool hard
coding CC=gcc in them, causing problems when compiling software
outside of pkgsrc using those tools.

We already inform people using sunpro to set CC CXX and CPP explicitly
to avoid this and this appears to work very well.  I can't remember
the reason we don't set these in sunpro.mk (Johnny?) but I think that
would be the correct approach for this rather than trying to fake the
compiler.

Thanks,

-- 
Jonathan Perkin                                     The NetBSD Project
http://www.perkin.org.uk/                       http://www.netbsd.org/