[vlc-commits] contrib: shout: Don't force -lwsock32

Hugo Beauzée-Luyssen git at videolan.org
Mon Dec 3 15:13:30 CET 2018


vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Dec  3 15:06:16 2018 +0100| [395447ed19f4e7f342d3dd06761e8e1384f3665c] | committer: Hugo Beauzée-Luyssen

contrib: shout: Don't force -lwsock32

(cherry picked from commit 2e5a1e8b46f59b90e5b14da24f47103cca165e76)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=395447ed19f4e7f342d3dd06761e8e1384f3665c
---

 contrib/src/shout/no-force-libwsock.patch | 11 +++++++++++
 contrib/src/shout/rules.mak               |  1 +
 2 files changed, 12 insertions(+)

diff --git a/contrib/src/shout/no-force-libwsock.patch b/contrib/src/shout/no-force-libwsock.patch
new file mode 100644
index 0000000000..4c619acbd8
--- /dev/null
+++ b/contrib/src/shout/no-force-libwsock.patch
@@ -0,0 +1,11 @@
+--- libshout/m4/xiph_net.m4.old	2018-12-03 14:41:36.427782211 +0100
++++ libshout/m4/xiph_net.m4	2018-12-03 14:41:43.235782185 +0100
+@@ -7,7 +7,7 @@
+ AC_CHECK_HEADERS([sys/select.h sys/uio.h])
+ AC_CHECK_HEADER([winsock2.h],
+   [AC_DEFINE([HAVE_WINSOCK2_H], [1], [Define if you have winsock2.h on MINGW])
+-   LIBS="$LIBS -lwsock32"])
++   ])
+ 
+ # These tests are ordered based on solaris 8 tests
+ AC_SEARCH_LIBS([sethostent], [nsl],
diff --git a/contrib/src/shout/rules.mak b/contrib/src/shout/rules.mak
index 07f577dce1..e48b0b37c1 100644
--- a/contrib/src/shout/rules.mak
+++ b/contrib/src/shout/rules.mak
@@ -24,6 +24,7 @@ libshout: libshout-$(SHOUT_VERSION).tar.gz .sum-shout
 	$(APPLY) $(SRC)/shout/libshout-arpa.patch
 	$(APPLY) $(SRC)/shout/fix-xiph_openssl.patch
 	$(APPLY) $(SRC)/shout/no-examples.patch
+	$(APPLY) $(SRC)/shout/no-force-libwsock.patch
 	$(call pkg_static,"shout.pc.in")
 	$(UPDATE_AUTOCONFIG)
 	$(MOVE)



More information about the vlc-commits mailing list