summaryrefslogtreecommitdiffstats
path: root/vlc/build/patches
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2018-01-06 12:00:09 +0000
committer Eric Hameleers <alien@slackware.com>2018-01-06 12:00:09 +0000
commit05714faa3ba760a9627484b2aa21508637265338 (patch)
tree65174e1194d2dbe2a6b79d352dbc97f2107c3925 /vlc/build/patches
parent210f07582dbffafe86df6b3f834035febe7f9ca6 (diff)
downloadasb-05714faa3ba760a9627484b2aa21508637265338.tar.gz
asb-05714faa3ba760a9627484b2aa21508637265338.tar.xz
Initial revision
Diffstat (limited to 'vlc/build/patches')
-rw-r--r--vlc/build/patches/libupnp_pthread.patch18
1 files changed, 18 insertions, 0 deletions
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: