From: Kumar Kartikeya Dwivedi Date: Fri, 5 Nov 2021 23:42:40 +0000 (+0530) Subject: libbpf: Compile using -std=gnu89 X-Git-Tag: v5.17-rc1~170^2~445^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3a74ac2d1159716f35c944639f71b33fa16084c8;p=thirdparty%2Flinux.git libbpf: Compile using -std=gnu89 The minimum supported C standard version is C89, with use of GNU extensions, hence make sure to catch any instances that would break the build for this mode by passing -std=gnu89. Signed-off-by: Kumar Kartikeya Dwivedi Signed-off-by: Alexei Starovoitov Link: https://lore.kernel.org/bpf/20211105234243.390179-4-memxor@gmail.com --- diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile index b393b5e823804..5f7086fae31c2 100644 --- a/tools/lib/bpf/Makefile +++ b/tools/lib/bpf/Makefile @@ -84,6 +84,7 @@ else endif # Append required CFLAGS +override CFLAGS += -std=gnu89 override CFLAGS += $(EXTRA_WARNINGS) -Wno-switch-enum override CFLAGS += -Werror -Wall override CFLAGS += $(INCLUDES)