This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: objc/2902: collect2 doesn't ...: libtool should use collect2?
- To: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Subject: Re: objc/2902: collect2 doesn't ...: libtool should use collect2?
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 28 May 2001 00:19:54 -0300
- Cc: nicola at brainstorm dot co dot uk (Nicola Pero), gcc-bugs at gcc dot gnu dot org, libtool at gnu dot org
- References: <200105251851.OAA24228@hiauly1.hia.nrc.ca>
On May 25, 2001, "John David Anglin" <dave@hiauly1.hia.nrc.ca> wrote:
> Here is a libtool fix for the above problem. It changes libtool to use
> `gcc -shared' for linking shared archives under hpux when $with_gcc = yes.
It also makes libtool use -nostdlib, which is most definitely wrong
without a definition of output_verbose_link_cmd. It appears to me
that you have simply copied the definitions from ltcf-cxx.sh, where
output_verbose_link_cmd is set whenever the compiler is GCC.
ltcf-c.sh doesn't.
I suppose the right solution for this problem is to introduce
ltcf-objc.sh, perhaps mostly as a copy of ltcf-gcj.sh, where this
problem should already have been taken care of. [checks...] No, it
isn't, and this is certainly going to be a problem whenever libgcj is
ported to HP-UX. Perhaps we could kill both problems at the same
time. Or, ever better, we might introduce a ltcf-gcc.sh to take care
of all languages supported by GCC in a generic way, instead of
duplicating it over all language-specific scripts.
> However, this may only be the tip of the ice berg. The same problem
> may apply to quite a few other oses.
True. But there's certainly a reason why we don't use GCC -shared on
HP-UX; it was used on all OSs in which it worked, back in the early
days of libtool. I wish I knew what reason it was, in the case of
HP-UX :-(
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me