On 10/14/2011 02:10 AM, David Aldrich wrote:
Hi

I am using libtool in a makefile to create a shared library containing my 
application code, which also links to wxWidgets libraries.  As a consequence of 
changing both platform (including gcc version) and wxWidgets packages, my 
makefile ceases to work.  It seems that the libtool command is trying to make a 
static, rather than a shared library.  I don't understand libtool well enough 
to fix the problem and would be grateful of some help.  Although I have 
mentioned wxWidgets, I am inclined to think that it is more appropriate to ask 
help from the libtool community than the wxWidgets community.

Here is the failing command:

libtool --mode=link g++ -shared -o libGUI.so<my object files>   -rpath 
/usr/local/lib

-shared is not a libtool flag, does it work if you do:

libtool --mode=link g++ -o libGUI.la <object files> -rpath /usr/local/lib

?

Peter

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

Reply via email to