[tracker] build: Make sure --target-glib used with Vala is the correct GLib version



commit 6b761e7c2e83d1f1414c2d7dfbad6996a03c76b1
Author: Martyn Russell <martyn lanedo com>
Date:   Thu Feb 13 20:22:19 2014 +0000

    build: Make sure --target-glib used with Vala is the correct GLib version
    
    Was set to 2.34, now we use ${GLIB_REQUIRED} in configure.
    
    This avoids a bunch of deprecation warnings about g_type_init() (fixed in
    2.36) and since we depend on ${GLIB_REQUIRED} it's fine if earlier versions
    break with Vala built C.

 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 950e47c..7d0a1f1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -529,7 +529,7 @@ AC_SUBST(GCOV_LIBS)
 # NOTE: BUILD_VALACFLAGS are for the sources built by Vala,
 #       not for .vala files themselves.
 ####################################################################
-BUILD_VALAFLAGS="-g --target-glib=2.34"
+BUILD_VALAFLAGS="-g --target-glib=${GLIB_REQUIRED}"
 BUILD_VALACFLAGS="${WARN_VALACFLAGS} ${GCOV_CFLAGS} -DG_LOG_DOMAIN=\\\"Tracker\\\" -DTRACKER_COMPILATION"
 BUILD_CFLAGS="${WARN_CFLAGS} ${GCOV_CFLAGS} -DG_LOG_DOMAIN=\\\"Tracker\\\" -DTRACKER_COMPILATION"
 BUILD_LIBS="${GCOV_LIBS}"


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