From 05714faa3ba760a9627484b2aa21508637265338 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sat, 6 Jan 2018 12:00:09 +0000 Subject: Initial revision --- vlc/build/patches/libupnp_pthread.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 vlc/build/patches/libupnp_pthread.patch (limited to 'vlc') diff --git a/vlc/build/patches/libupnp_pthread.patch b/vlc/build/patches/libupnp_pthread.patch new file mode 100644 index 00000000..ec858c73 --- /dev/null +++ b/vlc/build/patches/libupnp_pthread.patch @@ -0,0 +1,18 @@ +Source: http://git.videolan.org/?p=vlc/vlc-3.0.git;a=blob_plain;f=contrib/src/upnp/libpthread.patch +libupnp: -lpthread must be checked first + +On GNU/Linux, -pthread does not work properly when linking a static +library that depends on POSIX threads. -lpthread must be checked first. + +diff -Nru upnp.orig/m4/acx_pthread.m4 upnp/m4/acx_pthread.m4 +--- upnp.orig/m4/acx_pthread.m4 2016-08-06 11:54:20.990800226 +0300 ++++ upnp/m4/acx_pthread.m4 2016-08-06 11:54:37.909800395 +0300 +@@ -123,7 +123,7 @@ + # which indicates that we try without any flags at all, and "pthread-config" + # which is a program returning the flags for the Pth emulation library. + +-acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" ++acx_pthread_flags="pthreads none -Kthread -kthread lthread -lpthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" + + # The ordering *is* (sometimes) important. Some notes on the + # individual items follow: -- cgit v1.2.3-79-gdb01