Daniel Stenberg <[EMAIL PROTECTED]> writes:
> On Thu, 29 Mar 2007, Simon Josefsson wrote:
>
>> Actually, adding -no-undefined should be correct for all platforms, because
>> libssh2 doesn't depend on unresolved symbols. For example, I believe AIX
>> also needs it to produce shared libraries. I added it unconditionally.
>
> Heh, I replied to the commit mail before I saw this.
>
> If you're sure this is really the case, then I'm fine with it but experience
> from -no-undefined in libcurl tells differently.
I have been using -no-undefined in all of my projects (the original
reason was mingw32) for quite some time and haven't noticed that it
caused any problems. I don't rule out libtool bugs that break things,
but judging from the Libtool documentation, I think it is appropriate
to use -no-undefined:
`-no-undefined'
Declare that OUTPUT-FILE does not depend on any other libraries.
Some platforms cannot create shared libraries that depend on other
libraries (*note Inter-library dependencies::).
...
Some platforms, such as AIX, do not even allow you this
flexibility. In order to build a shared library, it must be
entirely self-contained (that is, have references only to symbols
that are found in the `.lo' files or the specified `-l' libraries),
and you need to specify the -NO-UNDEFINED flag. By default,
libtool builds only static libraries on these kinds of platforms.
This is exactly the experience I've had: without adding -no-undefined,
I only get static libraries on a number of platforms.
I think it is quite rare to have libraries that depend on symbols not
available from *.lo or any -l libraries. I'm not even sure what a
good example would be. I'd wish that libtool detected this situation
by itself and added the flag automatically. I think it is in a
position to decide whether this is the case.
Can you reproduce the problems with -no-undefined in curl? Maybe we
can debug that problem...
/Simon
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
libssh2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libssh2-devel