]> git.sesse.net Git - vlc/commitdiff
Contribs: fix ssh2 .pc file with zlib
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 24 Feb 2015 09:11:12 +0000 (10:11 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 24 Feb 2015 09:18:17 +0000 (10:18 +0100)
contrib/src/ssh2/configure-zlib.patch [new file with mode: 0644]
contrib/src/ssh2/rules.mak

diff --git a/contrib/src/ssh2/configure-zlib.patch b/contrib/src/ssh2/configure-zlib.patch
new file mode 100644 (file)
index 0000000..78d1fd7
--- /dev/null
@@ -0,0 +1,10 @@
+--- ssh2/configure.ac  2015-02-24 10:09:30.662277334 +0100
++++ ssh2/configure.ac.new      2015-02-24 10:08:57.658394756 +0100
+@@ -133,6 +133,7 @@
+     AC_MSG_NOTICE([Try --with-libz-prefix=PATH if you know you have it])
+   else
+     AC_DEFINE(LIBSSH2_HAVE_ZLIB, 1, [Compile in zlib support])
++    LIBS="$LIBS -lz"
+   fi
+ fi
index ff9be2bdd0b2821806e67038926b1ed574d3efb5..1a05fe87558abb9e85900770d618d307b3991ba8 100644 (file)
@@ -18,6 +18,7 @@ $(TARBALLS)/libssh2-$(LIBSSH2_VERSION).tar.gz:
 ssh2: libssh2-$(LIBSSH2_VERSION).tar.gz .sum-ssh2
        $(UNPACK)
        $(APPLY) $(SRC)/ssh2/no-tests.patch
+       $(APPLY) $(SRC)/ssh2/configure-zlib.patch
        $(MOVE)
 
 DEPS_ssh2 = gcrypt $(DEPS_gcrypt)