summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthew L. Creech <mlcreech@gmail.com>2010-04-19 11:16:30 -0400
committerThomas Graf <tgraf@suug.ch>2010-10-13 14:29:34 +0200
commita172e3ccf0617828a23d08c8c4a8eb4825ce0ccf (patch)
tree3f371711a33edaa6b3163db176e72d4ae26c1131 /src
parent4ab22ccd47319e7d9a972bcf018e1a03870f64f0 (diff)
downloadlibnl-a172e3ccf0617828a23d08c8c4a8eb4825ce0ccf.tar.gz
Put preprocessor definitions in AM_CPPFLAGS
When an alternate kernel header include directory is added in CPPFLAGS, the libnl build fails. This is because the local copy of kernel headers is added in AM_CFLAGS, which gets included after CPPFLAGS in the automake-generated makefile. Switching to AM_CPPFLAGS fixes the problems.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 4e2b57c..d72284d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2,7 +2,7 @@
SUBDIRS = lib
-AM_CFLAGS = -Wall -I${top_srcdir}/include -D_GNU_SOURCE
+AM_CPPFLAGS = -Wall -I${top_srcdir}/include -D_GNU_SOURCE
AM_LDFLAGS = -L${top_builddir}/lib -L${top_builddir}/src/lib -lnl-cli
noinst_PROGRAMS = \