[gnome-desktop] configure.ac: Use AX_COMPILER_FLAGS



commit 52206cb6fc8ebdba2e245779751df8466854f0f7
Author: Javier Jardón <jjardon gnome org>
Date:   Sat Oct 21 00:21:58 2017 +0100

    configure.ac: Use AX_COMPILER_FLAGS
    
    Switch from GNOME_COMPILE_WARNINGS to AX_COMPILER_FLAGS. This integrates
    better with CI systems, allows easy disabling of -Werror, and integrates
    with AX_IS_RELEASE to automatically disable errors when building
    releases.
    
    https://wiki.gnome.org/Projects/GnomeCommon/Migration

 configure.ac                 |    2 +-
 libgnome-desktop/Makefile.am |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9ab793e..6949f79 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,7 +71,7 @@ AC_SUBST(GNOME_DATE)
 AC_SUBST(GNOME_DATE_COMMENT_START)
 AC_SUBST(GNOME_DATE_COMMENT_END)
 
-GNOME_COMPILE_WARNINGS([maximum])
+AX_COMPILER_FLAGS([WARN_CFLAGS],[WARN_LDFLAGS])
 
 AC_ARG_ENABLE(deprecation_flags,
               [AC_HELP_STRING([--enable-deprecation-flags],
diff --git a/libgnome-desktop/Makefile.am b/libgnome-desktop/Makefile.am
index b2b86aa..7e8ac7b 100644
--- a/libgnome-desktop/Makefile.am
+++ b/libgnome-desktop/Makefile.am
@@ -74,6 +74,7 @@ libgnome_desktop_3_la_LIBADD =        \
        $(NULL)
 
 libgnome_desktop_3_la_LDFLAGS = \
+       $(WARN_LDFLAGS) \
        -version-info $(LT_VERSION) \
        -export-symbols-regex "^gnome_.*" \
        -no-undefined
@@ -109,7 +110,7 @@ GnomeDesktop_3_0_gir_EXPORT_PACKAGES = gnome-desktop-3.0
 GnomeDesktop_3_0_gir_CFLAGS = -DGNOME_DESKTOP_USE_UNSTABLE_API -I$(top_srcdir)
 GnomeDesktop_3_0_gir_LIBS = libgnome-desktop-3.la
 GnomeDesktop_3_0_gir_FILES = $(introspection_sources) $(libgnome_desktop_HEADERS)
-GnomeDesktop_3_0_gir_SCANNERFLAGS = --identifier-prefix=Gnome --symbol-prefix=gnome
+GnomeDesktop_3_0_gir_SCANNERFLAGS = --identifier-prefix=Gnome --symbol-prefix=gnome $(WARN_SCANNERFLAGS)
 INTROSPECTION_SCANNER_ARGS += $(patsubst %,--c-include='libgnome-desktop/%',$(libgnome_desktop_HEADERS))
 INTROSPECTION_GIRS += GnomeDesktop-3.0.gir
 


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