From 2b0b0ab7f5e08209c7d5de362fbdc96c3c1d977f 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 --- sound/mpd/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/mpd/Makefile b/sound/mpd/Makefile index edfde7f26..819a2052d 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 \