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.
This commit is contained in:
Dan Fandrich 2016-09-24 08:52:01 +02:00
parent cd7f562bdc
commit 1e7b79731b
1 changed files with 1 additions and 1 deletions

View File

@ -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"