Subject: Re: pkg/30234: IRIX: PKGSRC_COMPILER=gcc uses mk/wrapper/gcc.mk,
To: Georg Schwarz <georg.schwarz@freenet.de>
From: Jared D. McNeill <jmcneill@invisible.ca>
List: pkgsrc-bugs
Date: 05/15/2005 15:51:28
Georg Schwarz wrote:

> > When the package calls 'cc', our wrapper gets called. Shouldn't our wrapper be smart
> > enough to look at PKGSRC_COMPILER, and realize that when 'cc -version' is called that
> > it outputs 'MIPSpro Compilers: Version 7.30', then start searching other names (gcc
>
> I hope that the wrapper will never be that "smart", i.e. bloated.

These scripts are generated, right? Why not determine the compiler to use when they're
generated (rather than each time they're run).

Either way, it doesn't seem unreasonable to me for a 'gcc wrapper' to attempt to call a
program called 'gcc' before the more generic 'cc'. The same especially goes for 'g++'
versus 'CC'.

Cheers,
Jared