summarylogtreecommitdiffstats
path: root/0001-Build-with-Archlinux.patch
blob: 212e1f79d61f50ee3bd2e377fae5c494a8404841 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/ebpf_prog/Makefile b/ebpf_prog/Makefile
index d987814..5f7bc10 100644
--- a/ebpf_prog/Makefile
+++ b/ebpf_prog/Makefile
@@ -29,6 +29,7 @@ endif
 
 BIN := opensnitch.o opensnitch-procs.o opensnitch-dns.o
 CLANG_FLAGS = -I. \
+	-I$(KERNEL_HEADERS)/arch/$(ARCH)/include/ \
 	-I$(KERNEL_HEADERS)/arch/$(ARCH)/include/generated/ \
 	-I$(KERNEL_HEADERS)/include \
 	-include $(KERNEL_DIR)/include/linux/kconfig.h \
@@ -48,7 +49,8 @@ CLANG_FLAGS = -I. \
 	-Wno-gnu-variable-sized-type-not-at-end \
 	-Wno-address-of-packed-member \
 	-Wno-tautological-compare \
-	-Wno-unknown-warning-option  \
+	-Wno-unknown-warning-option \
+	-fcf-protection \
 	-fno-stack-protector \
 	-g -O2 -emit-llvm