From: Yann E. MORIN Date: Wed, 4 Jun 2014 23:04:10 +0000 (+0200) Subject: package/libcec: fix missing libraries from rpi-userland X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a19bb4b873a9592b3cc16ad992e473f7d56a0b35;p=buildroot.git package/libcec: fix missing libraries from rpi-userland When rpi-userland libraries are built as shared-objects, not all needed libraries are passed in the LD_FLAGS, leading to failure at linkage. To avoid this issue, set the LIBS variable content in accordance with INCLUDES variable value. This is needed because libcec does not use pkg-config to look for the ldflags needed for -lbcm_host, even though bcm_host provides a .pc file (even a correct one!) Signed-off-by: "Yann E. MORIN" Cc: Samuel Martin Tested-by: Maxime Hadjinlian Signed-off-by: Thomas Petazzoni --- diff --git a/package/libcec/libcec.mk b/package/libcec/libcec.mk index 0aabb0611e..ad919fc066 100644 --- a/package/libcec/libcec.mk +++ b/package/libcec/libcec.mk @@ -26,6 +26,7 @@ ifeq ($(BR2_PACKAGE_RPI_USERLAND),y) LIBCEC_CONF_OPT = --enable-rpi \ --with-rpi-include-path=$(STAGING_DIR)/usr/include LIBCEC_DEPENDENCIES += rpi-userland +LIBCEC_CONF_ENV += LIBS="-lvcos -lvchostif" else LIBCEC_CONF_OPT = --disable-rpi endif