]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
libbpf: Compile using -std=gnu89
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Fri, 5 Nov 2021 23:42:40 +0000 (05:12 +0530)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 9 Nov 2021 21:27:52 +0000 (13:27 -0800)
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 <memxor@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20211105234243.390179-4-memxor@gmail.com
tools/lib/bpf/Makefile

index b393b5e82380429a3e5eadb65d931f11e4a53759..5f7086fae31c21b35b049d9d1e9c3c6c9a5078e8 100644 (file)
@@ -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)