This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Always link against static libgcc on hppa-linux
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: rth at redhat dot com (Richard Henderson)
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 4 Feb 2002 17:14:53 -0500 (EST)
- Subject: Re: Always link against static libgcc on hppa-linux
> 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)