From patchwork Mon Feb 2 22:15:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 435647 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id E2ED6140276 for ; Tue, 3 Feb 2015 09:15:48 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 41E7D27526; Mon, 2 Feb 2015 22:15:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id biNcZWM3qJMu; Mon, 2 Feb 2015 22:15:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id DE80333081; Mon, 2 Feb 2015 22:15:46 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 751DB1C0F18 for ; Mon, 2 Feb 2015 22:15:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6EB7988274 for ; Mon, 2 Feb 2015 22:15:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id htIalog92a1b for ; Mon, 2 Feb 2015 22:15:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by whitealder.osuosl.org (Postfix) with ESMTPS id 482DF87E3F for ; Mon, 2 Feb 2015 22:15:44 +0000 (UTC) Received: from linux.local ([178.7.116.151]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0LdLw5-1XrYr72TDN-00iXmC for ; Mon, 02 Feb 2015 23:15:40 +0100 From: Peter Seiderer To: buildroot@busybox.net Date: Mon, 2 Feb 2015 23:15:39 +0100 Message-Id: <1422915339-4306-1-git-send-email-ps.report@gmx.net> X-Mailer: git-send-email 2.1.4 X-Provags-ID: V03:K0:mls5Mrem85oQbVStm7UabazXhqPzep+R2WuGB4kfeFJX8j4sMhW uB8UIdpoSmReurx1yNzPkLiYKbR+rANpWsDg77N5l7oAvJBbKwqX1pEU/YIA1vGSZURCdL1 sglhmdS0l6+LGciKMqAIoV/AHT/WW3YsJDlJHpG9WXnzSE3rTsDDPLFi7sG+p8BiDV2BmTL 9LJ/KCPnG6aM3VZWK7E1w== X-UI-Out-Filterresults: notjunk:1; Subject: [Buildroot] [PATCH v2] madplay: fix alsa detection/linking using host-pkgconf X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" Fixes [1]: configure check for libasound failed because of missing pthread linkage. [1] http://autobuild.buildroot.net/results/f3a/f3a0b3ff15e729d223c8c8ee6af75c425cd344b6/ Signed-off-by: Peter Seiderer --- Changes v1 -> v2: - use host-pkgconf for alsa librarys (suggested by Peter Korsgaard) instead adding only single library dependencys (e.g. -lpthread) --- package/madplay/madplay.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/madplay/madplay.mk b/package/madplay/madplay.mk index 1907eb5..ff12aa1 100644 --- a/package/madplay/madplay.mk +++ b/package/madplay/madplay.mk @@ -15,7 +15,8 @@ MADPLAY_DEPENDENCIES = libmad libid3tag $(if $(BR2_PACKAGE_GETTEXT),gettext) # ./configure can find alsa-lib. ifeq ($(BR2_PACKAGE_MADPLAY_ALSA),y) MADPLAY_CONF_OPTS += --with-alsa -MADPLAY_DEPENDENCIES += alsa-lib +MADPLAY_DEPENDENCIES += host-pkgconf alsa-lib +MADPLAY_CONF_ENV += LIBS="$(shell $(PKG_CONFIG_HOST_BINARY) --libs alsa)" endif $(eval $(autotools-package))