blob: 3c79ae7a141acce13a760f85f51e3a8aee671abe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
diff --git a/ebpf_prog/Makefile b/ebpf_prog/Makefile
index 0e930de..54d61e9 100644
--- a/ebpf_prog/Makefile
+++ b/ebpf_prog/Makefile
@@ -29,6 +29,7 @@ endif
SRC := $(wildcard *.c)
BIN := $(SRC:.c=.o)
CFLAGS = -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 @@ CFLAGS = -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
|