diff --git a/agent/src/ebpf/kernel/Makefile b/agent/src/ebpf/kernel/Makefile index 4b636240c12..9db6e311c5e 100644 --- a/agent/src/ebpf/kernel/Makefile +++ b/agent/src/ebpf/kernel/Makefile @@ -56,7 +56,7 @@ EBPF_CLAGS ?= -I. -Ivmlinux -Iinclude -I../../../crates/trace-utils/src \ %.elf: %.c $(call msg,BPF,$@,$(CORE)) - $(Q)$(CLANG) $(EBPF_CLAGS) $(EXTRA_EBPF_CLAGS) -std=gnu99 -Wimplicit-function-declaration \ + $(Q)$(CLANG) $(EBPF_CLAGS) $(EXTRA_EBPF_CLAGS) -DCOMPILE_MUSL=$(C_USE_STATIC) -std=gnu99 -Wimplicit-function-declaration \ -ffreestanding -fno-builtin -Wall \ -Wno-deprecated-declarations \ -Wno-gnu-variable-sized-type-not-at-end \