aboutsummaryrefslogtreecommitdiff
path: root/package/mpg123
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <peter@korsgaard.com>2015-05-22 00:00:05 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2015-05-22 00:00:05 +0200
commitdea306c78b5d4c571555c50512e212a725b594b9 (patch)
tree0c22460f0b4fda482ee4233f68ef03e677932f18 /package/mpg123
parentf84f204df52df9d561235b6977e3482e053dfc0e (diff)
downloadbuildroot-dea306c78b5d4c571555c50512e212a725b594b9.tar.gz
buildroot-dea306c78b5d4c571555c50512e212a725b594b9.tar.bz2
portaudio: fix static linking issue with portaudio
Fixes: http://autobuild.buildroot.net/results/25f/25f8088ecb276ff4559a56fcc4f1b92d11f7deac/ As opposed to the other audio backends, the configure script does NOT use pkg-config to figure out how to link with portaudio, breaking static linking as portaudio uses pthreads. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/mpg123')
-rw-r--r--package/mpg123/mpg123.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/mpg123/mpg123.mk b/package/mpg123/mpg123.mk
index c2d7b1fc35..c9acb6be86 100644
--- a/package/mpg123/mpg123.mk
+++ b/package/mpg123/mpg123.mk
@@ -52,6 +52,9 @@ ifeq ($(BR2_PACKAGE_PORTAUDIO),y)
MPG123_AUDIO += portaudio
MPG123_CONF_OPTS += --with-default-audio=portaudio
MPG123_DEPENDENCIES += portaudio
+# configure script does NOT use pkg-config to figure out how to link
+# with portaudio, breaking static linking as portaudio uses pthreads
+MPG123_CONF_ENV += LIBS='$(shell $(PKG_CONFIG_HOST_BINARY) --libs portaudio-2.0)'
endif
ifeq ($(BR2_PACKAGE_SDL),y)