From: Samuel Martin Date: Sun, 1 Jun 2014 11:24:27 +0200 Subject: [Buildroot] [PATCH v4 05/11] xbmc: fix missing libraries from rpi-userland In-Reply-To: <1401614673-3703-1-git-send-email-s.martin49@gmail.com> References: <1401614673-3703-1-git-send-email-s.martin49@gmail.com> Message-ID: <1401614673-3703-6-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 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 the INCLUDES variable value. Reported-by: Maxime Hadjinlian Signed-off-by: Samuel Martin Cc: Maxime Hadjinlian Cc: "Yann E. MORIN" --- changes v3 -> v4: - rebase changes v2 -> v3: - new patch --- package/xbmc/xbmc.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/xbmc/xbmc.mk b/package/xbmc/xbmc.mk index c7a4607..8c0146e 100644 --- a/package/xbmc/xbmc.mk +++ b/package/xbmc/xbmc.mk @@ -53,7 +53,8 @@ ifeq ($(BR2_PACKAGE_RPI_USERLAND),y) XBMC_DEPENDENCIES += rpi-userland XBMC_CONF_OPT += --with-platform=raspberry-pi --enable-player=omxplayer XBMC_CONF_ENV += INCLUDES="-I$(STAGING_DIR)/usr/include/interface/vcos/pthreads \ - -I$(STAGING_DIR)/usr/include/interface/vmcs_host/linux" + -I$(STAGING_DIR)/usr/include/interface/vmcs_host/linux" \ + LIBS="-lvcos -lvchostif" endif ifeq ($(BR2_PACKAGE_DBUS),y) -- 1.9.2