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]

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


On 07-Feb-2001, Alexandre Oliva <aoliva@redhat.com> wrote:
> On Feb  6, 2001, Fergus Henderson <fjh@cs.mu.oz.au> wrote:
> 
> > shared libraries on AIX/Windows/Beos will continually be broken by
> > developers on GNU/Linux,
> 
> If they use libtool, it will just work, because, without
> -no-undefined, libtool will just create static libraries on these
> platforms, that should work in this case.

Ah, but the more industrious of those developers out there *are* using
`-no-undefined', since they want shared libraries to work on
AIX/Windows/BeOS.  The problem is that on Linux `-no-undefined' is a
no-op.  So the failures only show up on other platforms (by which time
fixing them is a lot more work...).

> > Here's what I did for the Mercury implementation.
> > It's probably not very robust.
> 
> For one, it doesn't work in GNU/Linux-targeted cross-compilation
> scenarios, that libtool is supposed to support.

Well, the simple fix for that would be to have libtools not enable
`--no-undefined' for Linux when cross-compiling, same as is done if
the check for ld-linux.so fails.  It's not particularly important that
`-no-undefined' work in those relatively rare cases.  But it is important
that it work in the common case of a GNU/Linux native build.

-- 
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.

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