]> git.sesse.net Git - vlc/commitdiff
Contribs: fix libupnp linking with pthread for Win32
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 24 Aug 2010 16:14:10 +0000 (18:14 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 24 Aug 2010 16:15:16 +0000 (18:15 +0200)
Ref #4108

extras/contrib/src/Patches/libupnp-configure.patch

index 04314684957b269b4e6d67ad72f2caeb38a52936..1dd5d6691dfde196624551a04bf642f317a2d968 100644 (file)
@@ -48,7 +48,7 @@
 +#     [],
 +#     [AC_MSG_ERROR([POSIX threads are required to build this program])])
  #
-+PTHREAD_LIBS=" -lpthreadGC2"
++PTHREAD_LIBS=" -lpthreadGC2 -lws2_32"
 +PTHREAD_CFLAGS=" -DPTW32_STATIC_LIB -DUPNP_STATIC_LIB"
  # Update environment variables for pthreads
  #
  
  
  AC_CONFIG_FILES([
+--- libupnp/libupnp.pc.in      2008-02-10 02:55:39.000000000 +0100
++++ libupnp.new/libupnp.pc.in  2010-08-24 18:08:41.000000000 +0200
+@@ -6,6 +6,6 @@
+ Name: libupnp
+ Description: Linux SDK for UPnP Devices
+ Version: @VERSION@
+-Libs: @PTHREAD_LIBS@ -L${libdir} -lupnp -lthreadutil -lixml 
++Libs: -L${libdir} -lupnp -lthreadutil -lixml @PTHREAD_LIBS@ 
+ Cflags: @PTHREAD_CFLAGS@ -I${includedir}/upnp