This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Shell wrappers and GCC - FYA
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Subject: Re: Shell wrappers and GCC - FYA
- From: "Zack Weinberg" <zackw at Stanford dot EDU>
- Date: Fri, 29 Jun 2001 09:12:35 -0700
- Cc: Bruce Korb <bkorb at veritas dot com>, Bruce Korb <bkorb at pacbell dot net>, gcc at gcc dot gnu dot org
On Fri, Jun 29, 2001 at 07:58:21AM +0100, Neil Booth wrote:
> Zack Weinberg wrote:-
>
> > There are thre problems I see. One is, it's not clear how to handle
> > language-specific drivers,
>
> I don't see the point in these lang-specific drivers (or at least, the
> ones we have at present). They seem to do little, and what little
> they do could be added as a few lines in the scheme I proposed. Maybe
> they're there only because of SPEC issues?
I'm sure there are better ways to implement them, but...
> I don't see why they couldn't all be a hard / soft link to the same
> binary, on Unix at least, which changes it's behaviour based on
> argv[0].
this trick is explicitly forbidden by the GNU coding standards, which
is why I suggested the #! scripts for lang-specific drivers.
With the driver as a dynamic module, it would probably need to be told
where to find its #! script - only once, at initialization time.
--
zw "Shouldn't a witch be eccentric?"
"I hope not. I've never been good at cackling."
-- Reinder Dijkhuis, _Rogues of Clwyd-Rhan_