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 start with mylib_ :

libtool --mode=link g++ -shared   -o ../libmylib.so libmylib.o
-pthread -ldl -export-symbols-regex mylib_

But despite the keyword "shared" now libtool complains about a missing
function main(), means it tries to create an executable program
instead of a shared library.

What am I doing wrong here?

Elmi

_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to