diff options
author | Felix Fietkau <nbd@nbd.name> | 2021-03-18 07:22:11 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-04-04 11:39:51 +0200 |
commit | 95b838f75bd96705d5192acc56af34801ed6854d (patch) | |
tree | 7ea498bd24ae449398058a8e8ca99b57f027fbd7 /package/kernel/mt76 | |
parent | 609033767918a67e92046b266230cd88ac4a37f6 (diff) | |
download | upstream-95b838f75bd96705d5192acc56af34801ed6854d.tar.gz upstream-95b838f75bd96705d5192acc56af34801ed6854d.tar.bz2 upstream-95b838f75bd96705d5192acc56af34801ed6854d.zip |
build: use -nostdinc and -isystem in NOSTDINC_FLAGS for out-of-tree kernel modules
This resolves issues uncovered by musl updates
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry-picked from commit 9ac47ee46918c45b91f4e4d1fa76b1e26b9d57fe)
Diffstat (limited to 'package/kernel/mt76')
-rw-r--r-- | package/kernel/mt76/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/kernel/mt76/Makefile b/package/kernel/mt76/Makefile index 810ee4c3d4..45375ef564 100644 --- a/package/kernel/mt76/Makefile +++ b/package/kernel/mt76/Makefile @@ -235,7 +235,8 @@ endef TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libnl-tiny -NOSTDINC_FLAGS = \ +NOSTDINC_FLAGS := \ + $(KERNEL_NOSTDINC_FLAGS) \ -I$(PKG_BUILD_DIR) \ -I$(STAGING_DIR)/usr/include/mac80211-backport/uapi \ -I$(STAGING_DIR)/usr/include/mac80211-backport \ |