[hitori/wip/pwithnall/macros: 7/8] build: Use AX_COMPILER_FLAGS



commit 157a9a771f8fce7e7cdcf6544df7b98c33fa5d45
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Wed Mar 11 12:20:06 2015 +0000

    build: 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

 Makefile.am  |    1 +
 configure.ac |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index b418ab7..5dbbff6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -33,6 +33,7 @@ src_hitori_CFLAGS = \
        $(WARN_CFLAGS) \
        $(NULL)
 src_hitori_LDFLAGS = \
+       $(WARN_LDFLAGS) \
        $(CODE_COVERAGE_LDFLAGS) \
        $(NULL)
 
diff --git a/configure.ac b/configure.ac
index 2ff8f07..c84fbcb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,7 +16,7 @@ LT_INIT
 
 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
 
-GNOME_COMPILE_WARNINGS([maximum])
+AX_COMPILER_FLAGS([WARN_CFLAGS],[WARN_LDFLAGS])
 
 # Code coverage
 AX_CODE_COVERAGE()


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