From 1c078531a017358241a35475fb24f2bd65d501db Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 19 Nov 2019 11:06:43 +0100 Subject: build: use AX_IS_RELEASE() and AX_COMPILER_FLAGS() The autoconf macros AX_COMPILER_FLAGS_{CFLAGS|GIR|LDFLAGS} test for compiler and linker support of various flags, and add the flags to the generated output. If the command-line option '--enable-compile-warnings' is specified to 'configure', a number of additional warning options is also added to the output. This is the default. This update requires the presence of the GNU autoconf-archive in the system. --- src/Makefile.am | 2 ++ src/tests/Makefile.am | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index 46a874b3..84c810d6 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -12,6 +12,7 @@ BUILT_SOURCES = CLEANFILES = AM_CFLAGS = \ + $(WARN_CFLAGS) \ $(MM_CFLAGS) \ $(CODE_COVERAGE_CFLAGS) \ $(GUDEV_CFLAGS) \ @@ -26,6 +27,7 @@ AM_CFLAGS = \ $(NULL) AM_LDFLAGS = \ + $(WARN_LDFLAGS) \ $(MM_LIBS) \ $(CODE_COVERAGE_LDFLAGS) \ $(GUDEV_LIBS) \ diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am index 2631f9ba..26a05fa3 100644 --- a/src/tests/Makefile.am +++ b/src/tests/Makefile.am @@ -6,6 +6,7 @@ include $(top_srcdir)/gtester.make ################################################################################ AM_CFLAGS = \ + $(WARN_CFLAGS) \ $(MM_CFLAGS) \ $(CODE_COVERAGE_CFLAGS) \ -I$(top_srcdir) \ @@ -27,6 +28,7 @@ LDADD = \ $(NULL) AM_LDFLAGS = \ + $(WARN_LDFLAGS) \ $(MM_LIBS) \ $(CODE_COVERAGE_LDFLAGS) \ -lutil \ -- cgit v1.2.3-70-g09d2