bug-libtool
[Top][All Lists]
Advanced

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

-no-undefined (was: libposix)


From: Ralf Wildenhues
Subject: -no-undefined (was: libposix)
Date: Tue, 5 Oct 2010 06:23:46 +0200
User-agent: Mutt/1.5.20 (2010-08-04)

[ adding bug-libtool ]

Hello,

* Bruno Haible wrote on Mon, Oct 04, 2010 at 09:55:26PM CEST:
> 1)   libposix_la_LDFLAGS += -no-undefined
> 
>    This should ensure that on all platforms, the linking of libposix.so will
>    fail if there are undefined references. Without waiting for a program to
>    be linked with libposix.

That would be nice, but unfortunately that is not the case.
Adding -no-undefined is a promise made by the developer that
the library does not depend on libraries not listed.

However, the developer cannot know or guarantee that she links
against (installed) libraries which themselves may depend on
undefined references.  This is one reason libtool does not use
-Wl,-z,defs on GNU/Linux even with -no-undefined.

Cheers,
Ralf



reply via email to

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