From patchwork Wed Jun 4 21:30:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 356110 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 16AB7140092 for ; Thu, 5 Jun 2014 07:30:15 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 67CE48BE49; Wed, 4 Jun 2014 21:30:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LYi0ZypWYmBF; Wed, 4 Jun 2014 21:30:14 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id DDB898B143; Wed, 4 Jun 2014 21:30:13 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 9DC431C27E0 for ; Wed, 4 Jun 2014 21:30:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9AA338B143 for ; Wed, 4 Jun 2014 21:30:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3UBCj9W_kULO for ; Wed, 4 Jun 2014 21:30:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by fraxinus.osuosl.org (Postfix) with ESMTPS id DFEBA8B02D for ; Wed, 4 Jun 2014 21:30:11 +0000 (UTC) Received: by mail-wg0-f41.google.com with SMTP id z12so103382wgg.0 for ; Wed, 04 Jun 2014 14:30:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=6zS0iw+7TAEKgL1FBsWlKLa9HR7KmXdkFsmhEnbni4g=; b=ktS2NsSW8Zacf6/ZkrctK7R5keGSdTVpbkF0uwJFc6WFdP9i7n7gtnvpO28BxLgQ0/ o2KFrd7+GqHcMsocWA1Wf7QW6uBjflYQw8/3OgElcbWGzJ8MFUhvZNdkOCwb2y1vao0A JCQonPArQkSTcrkr4Sl5rmxgW+HHn8MgM3hpQpRlE5TzJLThCyBQ7wRG+zqjsXie2iwC FpEy+8+9k0AIfxOeJewlvv9rUUTIK6oH1evz7Ts+iSCzm8ZwGvF+f+Z5qrzqpo0Oh5py nBezXTCTPnpVabWftrWYAAg9Cnnm11n/mGjvGQGBjGnFB6L7bXXP80FAvJxza98rC7ZR Atow== X-Received: by 10.194.186.178 with SMTP id fl18mr8812581wjc.83.1401917410279; Wed, 04 Jun 2014 14:30:10 -0700 (PDT) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id i6sm11717094wiy.17.2014.06.04.14.30.08 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Jun 2014 14:30:09 -0700 (PDT) From: "Yann E. MORIN" To: Samuel Martin Date: Wed, 4 Jun 2014 23:30:01 +0200 Message-Id: <1401917401-26161-1-git-send-email-yann.morin.1998@free.fr> X-Mailer: git-send-email 1.8.3.2 Cc: "Yann E. MORIN" , buildroot@buildroot.org Subject: [Buildroot] [PATCH] package/libcec: fix missing libraries from rpi-userland X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@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 Tested-by: Maxime Hadjinlian --- 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