From: Dan Fandrich Date: Sat, 24 Sep 2016 06:52:01 +0000 (+0200) Subject: configure: Fixed builds with libssh2 in a custom location X-Git-Tag: curl-7_51_0~131 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e7b79731b6cb2db56a9ee9ab7ac9f4818affeda;p=curl configure: Fixed builds with libssh2 in a custom location A libssh2 library in the standard system location was being used in preference to the desired one while linking. --- diff --git a/configure.ac b/configure.ac index f7f8e0c5f..1f01467ef 100644 --- a/configure.ac +++ b/configure.ac @@ -2581,7 +2581,7 @@ if test X"$OPT_LIBSSH2" != Xno; then DIR_SSH2=${PREFIX_SSH2}/lib$libsuff fi - LDFLAGS="$LDFLAGS $LD_SSH2" + LDFLAGS="$LD_SSH2 $LDFLAGS" CPPFLAGS="$CPPFLAGS $CPP_SSH2" LIBS="$LIB_SSH2 $LIBS"