[oe] [PATCH 1/2] introduce global control on shared/static libraries

Phil Blundell philb at gnu.org
Mon Jan 11 11:53:38 UTC 2010


On Sun, 2010-01-10 at 18:06 +0100, Stanislav Brabec wrote:
> This patch adds support for global enabling and disabling of shared or
> static libraries in autoconf based packages.
> 
> All required fixes in packages that I was able to test are already in
> place with exception of apmd (I plan to commit it soon as well).

I'm not very keen on the names of these configuration variables or the
global exports of them.  I understand your desire to leverage the
existing support in autoconf for taking settings from the environment,
but I am not sure that it is wholesome to pollute the global environment
for all tasks, including non-autoconf-using ones, with this stuff.

I would suggest something more along the lines of a
BITBAKE_LIBRARY_STYLE variable (not exported to the environment), which
you can set to "shared", "static" or "both", and then some code in
autotools_do_configure() to translate this into the appropriate flags or
environment settings for configure.

p.






More information about the Openembedded-devel mailing list