From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Martin Date: Thu, 5 Jun 2014 01:04:10 +0200 Subject: [Buildroot] [PATCH v6 1/4] package/libcec: fix missing libraries from rpi-userland In-Reply-To: <1401923053-30292-1-git-send-email-s.martin49@gmail.com> References: <1401923053-30292-1-git-send-email-s.martin49@gmail.com> Message-ID: <1401923053-30292-2-git-send-email-s.martin49@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net From: "Yann E. MORIN" 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 --- package/libcec/libcec.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/libcec/libcec.mk b/package/libcec/libcec.mk index 0aabb06..ad919fc 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 -- 2.0.0