madplay: fix alsa detection/linking using host-pkgconf
PATCH v2 1/1 madplay: fix alsa detection/linking using host-pkgconf
Fixes [1]: configure check for libasound failed because of missing pthread linkage.
[1] http://autobuild.buildroot.net/results/f3a/f3a0b3ff15e729d223c8c8ee6af75c425cd344b6/
---
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(-)
package/madplay/madplay.mk +2 -1
@@ -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))
Signature · 1 line
2.1.4
PATCH v2 1/1 madplay: fix alsa detection/linking using host-pkgconf
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Seiderer <[email protected]> writes:
Fixes [1]: configure check for libasound failed because of missing pthread linkage.
Quoted 7 lines
[1] http://autobuild.buildroot.net/results/f3a/f3a0b3ff15e729d223c8c8ee6af75c425cd344b6/
Signed-off-by Peter Seiderer <[email protected]>---
Changes v1 -> v2:
- use host-pkgconf for alsa librarys (suggested by Peter Korsgaard) instead adding only single library dependencys (e.g. -lpthread)
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard