Always link against static libgcc on hppa-linux

John David Anglin dave@hiauly1.hia.nrc.ca
Mon Feb 4 14:44:00 GMT 2002


> On Mon, Feb 04, 2002 at 04:26:40PM -0500, John David Anglin wrote:
> > 	* pa32-linux.h (LINK_COMMAND_SPEC): Define.
> 
> Why not do this in LINK_SPEC instead?

The "-gcc" is output at the end of the link command.  The LINK_SPEC is
output just after %(linker) in the link command, before the %G %L %G
magic.  If there is a shared libgcc, we link against both the shared
and static libraries.  I put it after %E because I thought it conceivable
that the end file might need a milli routine.

Under hpux 64-bit, milli.a is added to LIB_SPEC.  However, at the moment,
ENDFILE_SPEC is empty.

If these were to move, I think putting them in the ENDFILE_SPEC would be
the best place.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)



More information about the Gcc-patches mailing list