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
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
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
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
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
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
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
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