madplay: fix alsa detection/linking using host-pkgconf
authorPeter Seiderer <ps.report@gmx.net>
Mon, 2 Feb 2015 22:15:39 +0000 (23:15 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 2 Feb 2015 23:03:20 +0000 (00:03 +0100)
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 <ps.report@gmx.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/madplay/madplay.mk

index 1907eb5beaa43c2692cb31b79a8656a619be4b6b..ff12aa111c04f59c04cf07470bf12718d00fe8ad 100644 (file)
@@ -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))