diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-02-13 15:04:33 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-02-13 15:11:50 +0100 |
commit | 87fe8ebc88d5effc93a5bb9eeabc2e1860a84c04 (patch) | |
tree | 8a0b9152e4d1e4c24952393e1aec16c59565a372 /rules/canutils.make | |
parent | bb83b033a6cef1ae2356bf117be8b9ffb873b105 (diff) | |
download | ptxdist-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/canutils.make')
-rw-r--r-- | rules/canutils.make | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/canutils.make b/rules/canutils.make index 42eadcefa..86c0a4841 100644 --- a/rules/canutils.make +++ b/rules/canutils.make @@ -32,7 +32,7 @@ CANUTILS_LICENSE := GPL-2.0 CANUTILS_CONF_ENV := \ $(CROSS_ENV) \ - CPPFLAGS="-I$(KERNEL_HEADERS_INCLUDE_DIR) $(CROSS_CPPFLAGS)" + CPPFLAGS="-isystem $(KERNEL_HEADERS_INCLUDE_DIR) $(CROSS_CPPFLAGS)" # # autoconf |