Ralf Wildenhues wrote:
With CVS HEAD Libtool, try
libconvenience_la_CXXFLAGS = -static
or with either HEAD or 1.5.x, and Automake = 1.10, try
libconvenience_la_LIBTOOLFLAGS = --tag=disable-shared
Hope that helps.
Thanks, that did the trick.
For a simple libtool convenience library, I've noticed the compile stage
compiles both PIC and non-PIC objects regardless of if it's actually
going to need PIC in the link stage. E.g, for something like this,
which is explicitly -static:
noinst_LTLIBRARIES = libconvenience.la
On Mon, 25 Feb 2008, Steven Brown wrote:
Is there a way to tell libtool to not build those PIC objects without
disabling shared libraries globally in the project with AC_DISABLE_SHARED?
Probably not without an ugly recursive configure. The problem is that
libtool does not know how the
Hello Steven,
* Steven Brown wrote on Tue, Feb 26, 2008 at 04:16:42AM CET:
noinst_LTLIBRARIES = libconvenience.la
libconvenience_la_LDFLAGS = -static
libconvenience_la_SOURCES = convenience.cc convenience.hpp
Is there a way to tell libtool to not build those PIC objects without
disabling