Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automake and standard shared libraries

How can I force automake to create a standard shared library, instead of a libtoolized one? Normally, I'd create the abc.so which is referenced with a full path and loaded into the main program. Is there a way to force AM to do the same? If I list it as _LIBRARY, automake complains: 'abc.so' is not a standard library name; did you mean 'libabc.a'

Just to clarify: Yes, I only need .so support - no statics. And yes, I want a custom file name.

like image 821
viraptor Avatar asked Jan 18 '10 02:01

viraptor


1 Answers

libtool is the way to go. If you want a custom name, add the -module option to _LDFLAGS, for example:

plugindir= /some/where  
plugin_LTLIBRARIES= abc.la
abc_la_LDFLAGS= -module
like image 181
ntd Avatar answered Sep 21 '22 12:09

ntd