* Zdenek Hutyra wrote on Tue, Dec 21, 2010 at 09:16:07AM CET:
> Is it possible to specify CFLAGS different for static and shared library in 
> .am file?
> 
> lib_LTLIBRARIES = libFOO.la
> libFOO_la_CFLAGS = ...

Not directly.  If this is only about preprocessor flags, -DPIC is set
for the shared lib.  Otherwise, you could make two different libraries,
  lib_LTLIBRARIES += libFOO-static.la
  libFOO_static_SOURCES = $(libFOO_SOURCES)
  libFOO_static_CFLAGS = ...

and either
  libFOO_static_LDFLAGS = -static

or
  libFOO_static_LIBTOOLFLAGS = --tag=disable-shared

Cheers,
Ralf

Reply via email to