On Thu, Sep 22, 2005 at 01:58:36PM +0900, Peter O'Gorman wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Thorsten Glaser wrote: > | gcc -shared creates a shared library. > | > | On OpenBSD, shared libraries do not link against other shared libraries. > | The main programme must link against all these. > > Is there a reason for this?
Thorsten's statement is somewhat misleading. you can definitely link libraries and dlopened modules against libraries without having all those libraries linked directly to the executable. but, there was something of a policy decision made to not link libraries against eachother. actually, this policy is somewhat under debate, and the runtime linker is getting a bit of a reworking ... as far as why -lstdc++ is not always used, I can't find the reason ATM, but I do remember some discussion of that at some point. maybe it's possible that -lstdc++ is not always necessary for each and every g++ link command? knowing that not always using -lstdc++ was a conscious decision, I would really consider libtool adding -lstdc++ to be a bug. -- <[EMAIL PROTECTED]> _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool