[RFH] changing linkfile name depending on a flag passed
Jim Wilson
wilson@specifixinc.com
Tue Jun 1 07:15:00 GMT 2004
Andrew Pinski wrote:
> To support libobjc on Darwin I need able change -lobjc to
> -lobjc-gnu if -fgnu-runtime is supplied. I know that gcc.c
> needs to be changed but I do not know where to change -lobjc
> to be -lobjc-gnu, I tried LINK_SPECS but that did not work at
> all.
LINK_SPECS can be overriden by the target, and it is overriden by many.
See for instance config/darwin.h.
You might have to create a new SPEC for this purpose, and then modify
LINK_COMMAND_SPEC to use it. And then modify targets that override
LINK_COMMAND_SPEC to include it also, but fortunately there are only two
of those, darwin and i386/djgpp.h.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com
More information about the Gcc
mailing list