summaryrefslogtreecommitdiffstats
path: root/rules/systemd.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-02-13 15:04:33 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-02-13 15:11:50 +0100
commit87fe8ebc88d5effc93a5bb9eeabc2e1860a84c04 (patch)
tree8a0b9152e4d1e4c24952393e1aec16c59565a372 /rules/systemd.make
parentbb83b033a6cef1ae2356bf117be8b9ffb873b105 (diff)
downloadptxdist-87fe8ebc88d5effc93a5bb9eeabc2e1860a84c04.tar.gz
ptxdist-87fe8ebc88d5effc93a5bb9eeabc2e1860a84c04.tar.xz
rules: use the correct include search order for kernel headers
The kernel headers should be used before the toolchain headers but after any local include paths. Use '-isystem' to handle this. Without this, e.g. systemd may fail to build: It has it's own copy of linux/bpf.h but a incompatible version from the toochain may be used instead. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/systemd.make')
-rw-r--r--rules/systemd.make2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/systemd.make b/rules/systemd.make
index 81036eed5..9e35f68f8 100644
--- a/rules/systemd.make
+++ b/rules/systemd.make
@@ -41,7 +41,7 @@ endif
ifdef PTXCONF_KERNEL_HEADER
SYSTEMD_CPPFLAGS := \
- -I$(KERNEL_HEADERS_INCLUDE_DIR)
+ -isystem $(KERNEL_HEADERS_INCLUDE_DIR)
endif
SYSTEMD_CONF_TOOL := meson