[gitg] configure: Include passed in cflags for threading support check



commit 1e0da0c37fe847fd7494f10bbba6ed1842d19efa
Author: Kalev Lember <kalevlember gmail com>
Date:   Wed Apr 15 00:11:40 2015 +0200

    configure: Include passed in cflags for threading support 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 990b01c..5026655 100644
--- a/configure.ac
+++ b/configure.ac
@@ -123,8 +123,8 @@ AC_MSG_CHECKING([for libgit2-glib threading support])
 cflags_save="${CFLAGS}"
 libs_save="${LIBS}"
 
-CFLAGS="${LIBGITG_CFLAGS}"
-LIBS="${LIBGITG_LIBS}"
+CFLAGS="${CFLAGS} ${LIBGITG_CFLAGS}"
+LIBS="${LIBS} ${LIBGITG_LIBS}"
 
 AC_TRY_RUN([
        #include <libgit2-glib/ggit.h>


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