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]
Other format: [Raw text]

Re: [RFH] changing linkfile name depending on a flag passed


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



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