[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Convenience libraries build both PIC and non-PIC regardless of -stat
From: |
Ralf Wildenhues |
Subject: |
Re: Convenience libraries build both PIC and non-PIC regardless of -static? |
Date: |
Tue, 26 Feb 2008 07:46:59 +0100 |
User-agent: |
Mutt/1.5.17+20080114 (2008-01-14) |
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 shared libraries globally in the project with
> AC_DISABLE_SHARED? The only thing I could find about this was this
> thread[1] 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.
Cheers,
Ralf