[libgit2-glib] configure: Include passed in cflags for ssh check



commit 4cee9a9d356ee0fea8ac3aa060ce5b48a7ba62f9
Author: Kalev Lember <kalevlember gmail com>
Date:   Wed Apr 15 00:08:49 2015 +0200

    configure: Include passed in cflags for ssh check
    
    This fixes the Fedora 23 build where the cflags and ldflags have to
    match. Otherwise, if the configure check throws away cflags but uses
    ldflags, the check fails with a linker error.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747874

 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 8340f7a..240142c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -92,8 +92,8 @@ if test "x$enable_ssh" != "xno"; then
     cflags_save="${CFLAGS}"
     libs_save="${LIBS}"
 
-    CFLAGS="${LIBGIT2_GLIB_CFLAGS}"
-    LIBS="${LIBGIT2_GLIB_LIBS}"
+    CFLAGS="${CFLAGS} ${LIBGIT2_GLIB_CFLAGS}"
+    LIBS="${LIBS} ${LIBGIT2_GLIB_LIBS}"
 
     AC_TRY_RUN([
             #include <git2.h>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]