diff --git a/modules/services_discovery/Makefile.am b/modules/services_discovery/Makefile.am
index 9755c2552fd0a97aa2b09b781c995d52a3ab1bbb..24ff0eceb50e4a2b2d97fe92aee2ea0b4c7d5740 100644
--- a/modules/services_discovery/Makefile.am
+++ b/modules/services_discovery/Makefile.am
@@ -40,6 +40,11 @@ sd_LTLIBRARIES += $(LTLIBupnp)
 if HAVE_OSX
 libupnp_plugin_la_LDFLAGS += -Wl,-framework,CoreFoundation,-framework,SystemConfiguration
 endif
+if HAVE_LINUX
+if !HAVE_ANDROID
+libupnp_plugin_la_LIBADD += -lpthread
+endif
+endif
 
 libpulselist_plugin_la_SOURCES = services_discovery/pulse.c
 libpulselist_plugin_la_CFLAGS = $(AM_CFLAGS) $(PULSE_CFLAGS)