This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Shell wrappers and GCC - FYA


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_


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]