[vlc-commits] [Git][videolan/vlc][master] upnp: force -lpthread (fixes #24239)

Rémi Denis-Courmont (@Courmisch) gitlab at videolan.org
Mon Jan 24 06:24:03 UTC 2022



Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC


Commits:
21d696e5 by Rémi Denis-Courmont at 2022-01-23T21:19:01+02:00
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.

- - - - -


1 changed file:

- modules/services_discovery/Makefile.am


Changes:

=====================================
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)



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/21d696e5df185e4ca3b9c5ecd606951462da2b9f

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/21d696e5df185e4ca3b9c5ecd606951462da2b9f
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list