summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2012-03-19 13:20:42 -0300
committerLennart Poettering <lennart@poettering.net>2012-03-26 21:02:26 +0200
commiteb2e280f9c59b66965c9316eadc4c113a13ca744 (patch)
treee9f1761d2187d64233cc51480e919ea2f55b8959 /Makefile.am
parent169c4f65131fbc7bcb51e7d5487a715cdcd0e0eb (diff)
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
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am2
1 files changed, 2 insertions, 0 deletions
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\" \