[Buildroot] [PATCH 7/8] package/autotools: add --{enable, disable}-{shared, static} automatically

Peter Korsgaard jacmet at uclibc.org
Sun Jun 12 19:59:29 UTC 2011


>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:

 Thomas> For target packages, depending on BR2_PREFER_STATIC_LIB, add the
 Thomas> correct combination of --{enable,disable}-{shared,static} flags to
 Thomas> ./configure calls.

 Thomas>   * When BR2_PREFER_STATIC_LIB is enabled, we pass --enable-static
 Thomas>   --disable-shared.

 Thomas>   * When BR2_PREFER_STATIC_LIB is disabled, we pass --enable-static
 Thomas>   --enable-shared. We enable static libraries since they can still be
 Thomas>   useful to statically link applications against some libraries
 Thomas>   (sometimes it is useful for size reasons). Static libraries are
 Thomas>   anyway only installed in the STAGING_DIR, so it doesn't increase in
 Thomas>   any way the size of the TARGET_DIR.

But it does mean that autotools stuff now gets built twice, increasing
the build time..

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list