[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help needed to build shared library with libtool

From: Peter O'Gorman
Subject: Re: Help needed to build shared library with libtool
Date: Fri, 14 Oct 2011 07:44:19 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110906 Fedora/3.1.14-1.fc14 Thunderbird/3.1.14

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

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<my object files>   -rpath 

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

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]