From eb2e280f9c59b66965c9316eadc4c113a13ca744 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Mon, 19 Mar 2012 13:20:42 -0300 Subject: build-sys: do not set CFLAGS directly Set a separate variable for adding warning flags. Build systems are not supposed to change CFLAGS and LDFLAGS, these are user variables. Reference: http://www.gnu.org/software/automake/manual/html_node/Flag-Variables-Ordering.html --- Makefile.am | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 99ad9c0309..2699e594c3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -106,6 +106,8 @@ AM_CPPFLAGS = \ -I $(top_srcdir)/src/journal \ -I $(top_srcdir)/src/systemd +AM_CFLAGS = $(WARNINGFLAGS) + if TARGET_GENTOO AM_CPPFLAGS += \ -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \ -- cgit v1.2.3-54-g00ecf