[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: different flags for static and shared
From: |
David Byron |
Subject: |
RE: different flags for static and shared |
Date: |
Thu, 13 Aug 2009 09:46:43 -0700 |
On July 25, 2009, Ralf Wildenhues wrote:
> * David Byron wrote on Tue, Jun 30, 2009 at 12:22:52AM
> CEST:
>
> > In the case where a build directory is configured for
> > static only (e.g. invoked with --disable-shared) I can
> > add -DLIBFOO_STATIC to one of the CPPFLAGS variables,
> > but if a build directory is configured for both, I don't
> > see how to define LIBFOO_STATIC only in the static case.
>
> libtool should be adding -DPIC only for the non-static
> objects, that should allow you to distinguish between that
> and the objects that are used for the DLL.
Perfect.
> In case you are using convenience archives, you should
> note that currently, libtool only creates one set of
> objects for them, not two. So you might have to pass the
> -static flag to convenience archive creation in this case,
> or build two such archives.
No convenience archives for me at the moment, but thanks for the heads up.
-DB
- RE: different flags for static and shared,
David Byron <=