This is the mail archive of the gcc-patches@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: 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)


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