PATCH: Support libtool -no-undefined under GNU/Linux.

Fergus Henderson fjh@cs.mu.oz.au
Tue Feb 6 16:26:00 GMT 2001


On 06-Feb-2001, Alexandre Oliva <aoliva@redhat.com> wrote:
> On Feb  6, 2001, Mark Mitchell <mark@codesourcery.com> wrote:
> 
> > This patch makes libtool's -no-undefined switch work under GNU/Linux.
> 
> Would you mind making a similar change in ltcf-gcj.sh, then submitting
> a complete patch to libtool-patches@gnu.org, so that the next update
> of these files from libtool doesn't clobber your change?  Thanks,

Because of the problem discussed earlier in this thread where
ld-linux.so is not linked in, this change might cause trouble.
Probably there are existing programs that are built using libtool with
`-no-undefined' but which do not explicitly link in `/lib/ld-linux.so.2'.
This patch would cause such programs to break.

So I think this patch also requires some code in libtool to link in
/lib/ld-linux.so.2 if needed.  (The right fix might be to change ld
or libc instead, but even so, libtool will still need this code to
work around problems in existing versions of ld and libc.)

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: < http://www.cs.mu.oz.au/~fjh >  |     -- the last words of T. S. Garp.


More information about the Gcc-patches mailing list