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

2013-03-18 Thread Satz Klauer
what a GNU-compiler would say when you have a statement -Wl,-whole-archive -Wl,-no-whole-archive with no libraries to be linked in between... On Mon, Mar 18, 2013 at 11:18 AM, Peter Johansson wrote: > On 3/18/13 4:03 PM, Satz Klauer wrote: >> >> It is not a libtool-specific thi

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: Avoid exporting of internal symbols

2013-03-06 Thread Satz Klauer
OK, it works with the hidden visibility! I linked some static librarys to my shared one where I forgot to use this visibility - now that this is fixed everything is fine :-) On Tue, Mar 5, 2013 at 7:02 PM, David Carlos Manuelda wrote: > El Martes, 5 de marzo de 2013 18:53:37 Satz Kla

Re: Avoid exporting of internal symbols

2013-03-05 Thread Satz Klauer
re looking for. > > El 04/03/2013 08:06, "Satz Klauer" escribió: >> >> I'm creating a shared library using libtool: >> >> libtool --mode=compile g++ -Wall -fPIC -shared -Wno-unused >> -Wno-unused-result $(CFLAGS) $(LFLAGS) >> libtool --mo

Re: Avoid exporting of internal symbols

2013-03-03 Thread Satz Klauer
or. > > El 04/03/2013 08:06, "Satz Klauer" escribió: >> >> I'm creating a shared library using libtool: >> >> libtool --mode=compile g++ -Wall -fPIC -shared -Wno-unused >> -Wno-unused-result $(CFLAGS) $(LFLAGS) >> libtool --mode=link g++ -share

Avoid exporting of internal symbols

2013-03-03 Thread Satz Klauer
I'm creating a shared library using libtool: libtool --mode=compile g++ -Wall -fPIC -shared -Wno-unused -Wno-unused-result $(CFLAGS) $(LFLAGS) libtool --mode=link g++ -shared -export-symbols-regex mylib_ -rpath /usr/lib $(LFLAGS) (That's a snipped only, there of course is the part that causes com

Re: Libtool is looking for main() when linking shared library

2011-03-21 Thread Satz Klauer
On 3/21/11, Peter Rosin wrote: > Den 2011-03-21 07:36 skrev Satz Klauer: >> Hi, >> >> I try to use libtool to limit the number of symbols exported by a >> shared library. My previous call to create this library looked like >> this and worked fine: >> >&g

Libtool is looking for main() when linking shared library

2011-03-21 Thread Satz Klauer
Hi, I try to use libtool to limit the number of symbols exported by a shared library. My previous call to create this library looked like this and worked fine: g++ -shared -o ../libmylib.so libmylib.o -pthread -ldl Now I modified it so that my resulting libmylib.so only exports symbols that st