libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: objc/2902: collect2 doesn't ...: libtool should use collect2?


From: Alexandre Oliva
Subject: Re: objc/2902: collect2 doesn't ...: libtool should use collect2?
Date: 28 May 2001 00:19:54 -0300
User-agent: Gnus/5.090003 (Oort Gnus v0.03) XEmacs/21.4 (Academic Rigor)

On May 25, 2001, "John David Anglin" <address@hidden> 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                  address@hidden, redhat.com}
CS PhD student at IC-Unicamp        address@hidden, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



reply via email to

[Prev in Thread] Current Thread [Next in Thread]