mpd: link against libpthread under glibc 11445/head
authorRosen Penev <rosenp@gmail.com>
Thu, 27 Feb 2020 04:25:44 +0000 (20:25 -0800)
committerRosen Penev <rosenp@gmail.com>
Thu, 27 Feb 2020 21:25:51 +0000 (13:25 -0800)
Fixes compilation.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
sound/mpd/Makefile

index edfde7f26f88412ffebbb5e615991095b867c40a..819a2052db19ffec23ad3a55fb2ba8f7273eba9b 100644 (file)
@@ -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 \