summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-12-30 16:38:32 +0100
committerJan Engelhardt <jengelh@medozas.de>2010-12-31 00:19:51 +0100
commita0b68d260f04776f021e8117ba4d88bcc5c70b9a (patch)
tree6fff87923de6b390783d8e953096818c530539e9
parent091286e666a9d34818a875152ac7659b38656f06 (diff)
downloadlibmnl-a0b68d260f04776f021e8117ba4d88bcc5c70b9a.tar.gz
libmnl-a0b68d260f04776f021e8117ba4d88bcc5c70b9a.zip
build: use AM_CPPFLAGS
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
-rw-r--r--Make_global.am2
-rw-r--r--configure.ac5
2 files changed, 4 insertions, 3 deletions
diff --git a/Make_global.am b/Make_global.am
index 7049189..1c9ed63 100644
--- a/Make_global.am
+++ b/Make_global.am
@@ -20,5 +20,5 @@
#
LIBVERSION=0:1:0
-AM_CPPFLAGS = -I$(top_srcdir)/include
+AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_srcdir}/include
AM_CFLAGS = ${regular_CFLAGS} ${GCC_FVISIBILITY_HIDDEN}
diff --git a/configure.ac b/configure.ac
index 264242a..819cbf7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,10 +17,11 @@ case $target in
*) AC_MSG_ERROR([Linux only, dude!]);;
esac
-regular_CFLAGS="-D_FILE_OFFSET_BITS=64 \
- -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations \
+regular_CPPFLAGS="-D_FILE_OFFSET_BITS=64 -D_REENTRANT"
+regular_CFLAGS="-Wall -Waggregate-return -Wmissing-declarations \
-Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
-Wformat=2 -pipe"
+AC_SUBST([regular_CPPFLAGS])
AC_SUBST([regular_CFLAGS])
AC_CONFIG_FILES([Makefile src/Makefile include/Makefile include/libmnl/Makefile include/linux/Makefile examples/Makefile examples/genl/Makefile examples/netfilter/Makefile examples/rtnl/Makefile libmnl.pc doxygen.cfg])
AC_OUTPUT