]> granicus.if.org Git - curl/commitdiff
configure: Fixed builds with libssh2 in a custom location
authorDan Fandrich <dan@coneharvesters.com>
Sat, 24 Sep 2016 06:52:01 +0000 (08:52 +0200)
committerDan Fandrich <dan@coneharvesters.com>
Sat, 24 Sep 2016 06:52:01 +0000 (08:52 +0200)
A libssh2 library in the standard system location was being used in
preference to the desired one while linking.

configure.ac

index f7f8e0c5f290fef4db35dc219258211a3d6b4143..1f01467ef4b1cabf25f02e92174ef2233165cff5 100644 (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"