Bart Smaalders <[EMAIL PROTECTED]> writes:

> Is this something that should go through a wrapper, so
> that cc is always found by the naive user, but individuals
> can select which version they use via an environment
> variable?
> 
> Eg:
> 
> If you set CC, /usr/bin/cc honors that.  If CC points to
> /usr/bin/cc or is unset, the default version is chosen.
> This default could be the first one installed or the one
> the OS was built with or the newest version or ...
> 
> The same logic could apply to all the other tools as well
> since they're a matched set.  Other environment variables
> to be honored might be CCC, F77, etc.

I fear using environment variables for this purpose is a bad idea, which is
why the GCC developers always rejected requests to add such a feature: if
the compilation environment is affected by env vars in this way, it becomes
impossible to see from the command line which commands are executed and it
becomes very hard to figure out what is actually being run.

        Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
_______________________________________________
tools-discuss mailing list
tools-discuss@opensolaris.org

Reply via email to