summaryrefslogtreecommitdiffstats
path: root/rules/canfestival.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/canfestival.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/canfestival.make')
-rw-r--r--rules/canfestival.make2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/canfestival.make b/rules/canfestival.make
index 254bd6cf7..d8aed433b 100644
--- a/rules/canfestival.make
+++ b/rules/canfestival.make
@@ -35,7 +35,7 @@ CANFESTIVAL_PATH := PATH=$(CROSS_PATH)
CANFESTIVAL_ENV := $(CROSS_ENV_CC)
# Overwrite OPT_CFLAGS instead of CFLAGS so we don't loose other flags
# such as -fPIC for libs. Not this breaks when using "--disable-Ox"
-CANFESTIVAL_MAKEVARS := OPT_CFLAGS="-I$(KERNEL_HEADERS_INCLUDE_DIR) -O2"
+CANFESTIVAL_MAKEVARS := OPT_CFLAGS="-isystem $(KERNEL_HEADERS_INCLUDE_DIR) -O2"
#
# autoconf
#