Re: lazy symbol binding failed - on MacOSX 10.7 and 10.8

2013-03-17 Thread Satz Klauer
It is not a libtool-specific thingy, you have to use these linking options: -Wl,-whole-archive -lyourlib.a -lyourlib2.a -Wl,-no-whole-archive This includes your static libraries libyourlib1.a and libyourlib2.a into the shared library. Please do not forget the "-Wl,-no-whole-archive" at the end to

Re: lazy symbol binding failed - on MacOSX 10.7 and 10.8

2013-03-17 Thread Peter Johansson
Hi Bob, Thanks for your quick reply. On 03/18/2013 04:41 AM, Bob Friesenhahn wrote: It is not portable, safe, or advisable to link a shared library with a static library. Due to this, libtool does not apply .a files while it is linking a shared library. Usually it warns and provides advice

Re: lazy symbol binding failed - on MacOSX 10.7 and 10.8

2013-03-17 Thread Bob Friesenhahn
On Sun, 17 Mar 2013, Peter Johansson wrote: Hi libtoolers, I've encontered a problem on newer OSX (10.7 and 10.8) when mixing a static library (libfoo) and a dynamic library (libbar). The dynamic library is created with libtool so there is a libbar.la file whereas for the static library ther