This is the mail archive of the 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 <> wrote:
> On Feb  6, 2001, Fergus Henderson <> 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 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 <>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <>  |     -- 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]