diff options
author | Markus Niebel <Markus.Niebel@tq-group.com> | 2014-11-26 13:03:16 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-11-26 16:25:05 +0100 |
commit | 73a92c2ca2c4d1b824a8d3a7deb76ea89ae0deab (patch) | |
tree | 5c466b67206381b3b55f46fc851f84184d6c3b02 | |
parent | 6e570bcb6af67530910ce4bdccd38f912616cb74 (diff) | |
download | ptxdist-73a92c2ca2c4d1b824a8d3a7deb76ea89ae0deab.tar.gz ptxdist-73a92c2ca2c4d1b824a8d3a7deb76ea89ae0deab.tar.xz |
systemd: add SYSTEMD_CPPFLAGS for local kernel headers
systemd uses cpp to generate tables for keymappings. Without setting
CPPFLAGS the toolchain headers will be used for generation but
local kernel headers for compilation. This can break compile.
Since CPPFLAGS are implicitly used when calling compiler directly,
we can drop the CFLAGS settings for local kernel headers.
tested with kernel 3.9
Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/systemd.make | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/systemd.make b/rules/systemd.make index b0f7ce00d..b2de3d7f0 100644 --- a/rules/systemd.make +++ b/rules/systemd.make @@ -41,7 +41,7 @@ SYSTEMD_CONF_ENV := \ SYSTEMD_CONF_ENV += cc_cv_CFLAGS__flto=no -SYSTEMD_CFLAGS := \ +SYSTEMD_CPPFLAGS := \ -I$(KERNEL_HEADERS_INCLUDE_DIR) # |