[Buildroot] [PATCH] cmake: use system libzma when the xz package is enabled

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Mar 4 11:13:02 UTC 2015


Dear Fabio Porcedda,

On Wed,  4 Mar 2015 12:07:16 +0100, Fabio Porcedda wrote:

> +ifeq ($(BR2_PACKAGE_XZ),y)
> + HOST_CMAKE_DEPENDENCIES += host-xz
> + HOST_CMAKE_CONF_OPTS += -DCMAKE_USE_SYSTEM_LIBLZMA=ON
> +endif

This doesn't make any sense. Why would a dependency on host-xz be tied
to the activation of the target xz package ?

You have two choices here:

 * Ask host-cmake to *always* use its internal copy of the xz library,
   and to never look for a host-installed one.

 * Depend on host-xz unconditionally, and ask host-cmake to always use
   this system-provided host-xz.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list