[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Convenience libraries build both PIC and non-PIC regardless of -stat
Re: Convenience libraries build both PIC and non-PIC regardless of -static?
Tue, 26 Feb 2008 07:46:59 +0100
* 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 shared libraries globally in the project with
> AC_DISABLE_SHARED? The only thing I could find about this was this
> thread but the patch doesn't seem to have been applied.
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.