Skip to content
Snippets Groups Projects
Commit 21d696e5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

upnp: force -lpthread (fixes #24239)

The pkg-config file correctly supplies -pthread for LDFLAGS, but
libtool discards it, leading to linkage failure if libupnp is linked
statically.
parent 5a010800
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,11 @@ sd_LTLIBRARIES += $(LTLIBupnp) ...@@ -40,6 +40,11 @@ sd_LTLIBRARIES += $(LTLIBupnp)
if HAVE_OSX if HAVE_OSX
libupnp_plugin_la_LDFLAGS += -Wl,-framework,CoreFoundation,-framework,SystemConfiguration libupnp_plugin_la_LDFLAGS += -Wl,-framework,CoreFoundation,-framework,SystemConfiguration
endif 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_SOURCES = services_discovery/pulse.c
libpulselist_plugin_la_CFLAGS = $(AM_CFLAGS) $(PULSE_CFLAGS) libpulselist_plugin_la_CFLAGS = $(AM_CFLAGS) $(PULSE_CFLAGS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment