From: Rosen Penev Date: Thu, 27 Feb 2020 04:25:44 +0000 (-0800) Subject: mpd: link against libpthread under glibc X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2b0b0ab7f5e08209c7d5de362fbdc96c3c1d977f;p=feed%2Fpackages.git mpd: link against libpthread under glibc Fixes compilation. Signed-off-by: Rosen Penev --- diff --git a/sound/mpd/Makefile b/sound/mpd/Makefile index edfde7f26f..819a2052db 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 \