summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2021-11-27 14:51:53 +0100
committerRosen Penev <rosenp@gmail.com>2021-11-29 01:44:11 -0800
commit8340b842f5f4067e383374bf095fb98c09124a94 (patch)
tree311a49ef596d85da070835582bc71da428f31b07 /kernel
parentacb795c626203e4ebbf057b88ef8afa0ccf5aa2a (diff)
ovpn-dco: Avoid building against musl headers
The musl headers contain defines which are incompatible with kernel builds. For example alltypes.h contain a __BIG_ENDIAN define. This will force various kernel functions/macros to be build in a way which requires the target system to be big endian. But if the target system is actually little endian, these function will then not perform there intended tasks. The actual (hard to debug) effects can vary between minor problems and fatal errors. This is port of the fix from OpenWrt's commit 9ac47ee46918 ("build: use -nostdinc and -isystem in NOSTDINC_FLAGS for out-of-tree kernel modules") Fixes: 17cd1793bbec ("ovpn-dco: Add package") Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/ovpn-dco/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/ovpn-dco/Makefile b/kernel/ovpn-dco/Makefile
index 2e94fe9fb..ffd72cb56 100644
--- a/kernel/ovpn-dco/Makefile
+++ b/kernel/ovpn-dco/Makefile
@@ -37,6 +37,7 @@ define KernelPackage/ovpn-dco/description
endef
NOSTDINC_FLAGS += \
+ $(KERNEL_NOSTDINC_FLAGS) \
-I$(PKG_BUILD_DIR)/include \
-include $(PKG_BUILD_DIR)/linux-compat.h