This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: HPUX PA LINK_SPEC change (HP linker & shared libs)
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: sje at cup dot hp dot com (Steve Ellcey)
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 3 Oct 2002 19:12:15 -0400 (EDT)
- Subject: Re: HPUX PA LINK_SPEC change (HP linker & shared libs)
> I am not sure what you are trying to accomplish here. If GCC was
> configured with --with-ld then it doesn't seem possible to change what
> ld is used and -mhp-ld and -mgnu-ld probably won't be needed or useful.
It should be possible to specify a script or program using --with-ld
that would select linkers based on whether or not the +Accept option
is in the argument list. This program would just have to know where the
two linkers are.
> But if gcc was configured without --with-ld then the ld found will
> depend on your path (I think) and you may need -mhp-ld or -mgnu-ld to
I think that this is true as long as gcc doesn't find ld in the
program search path. Again, it should be possible to put a ld
script in the gcc tools directory.
Anyway, with regard to the documentation for these two options, it
should be indicated that they don't affect the linker selected by
gcc. That is determined by the --with-ld configure option, gcc's
program search path, and finally by the user's PATH. The linker
in effect can be printed using "which `gcc -print-prog-name=ld`".
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)