From eda73f9279ddcdfad60e83a307e4872e6f275631 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 26 Feb 2020 20:25:44 -0800 Subject: [PATCH] mpd: link against libpthread under glibc Fixes compilation. Signed-off-by: Rosen Penev (cherry picked from commit 2b0b0ab7f5e08209c7d5de362fbdc96c3c1d977f) --- sound/mpd/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/mpd/Makefile b/sound/mpd/Makefile index 4de999017..6e9bf75e6 100644 --- a/sound/mpd/Makefile +++ b/sound/mpd/Makefile @@ -97,7 +97,10 @@ define Package/mpd-avahi-service/conffiles /etc/avahi/services/mpd.service endef -EXTRA_LDFLAGS += $(if $(ICONV_FULL),-liconv,-Wl,--whole-archive -liconv -Wl,--no-whole-archive) -Wl,-rpath-link=$(STAGING_DIR)/usr/lib/pulseaudio +TARGET_LDFLAGS += \ + $(if $(ICONV_FULL),-liconv,-Wl,--whole-archive -liconv -Wl,--no-whole-archive) \ + $(if $(CONFIG_USE_GLIBC),-lpthread) \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib/pulseaudio MESON_ARGS += \ -Ddocumentation=false \