diff options
author | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2021-11-06 02:42:40 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-11-10 00:27:52 +0300 |
commit | 3a74ac2d1159716f35c944639f71b33fa16084c8 (patch) | |
tree | 4c0ebc25d680a8ca2768458487b0f5fe4a58e391 /tools/lib/bpf/Makefile | |
parent | c23551c9c36ae394f9c53a5adf1944a943c65e0b (diff) | |
download | linux-3a74ac2d1159716f35c944639f71b33fa16084c8.tar.xz |
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 <memxor@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20211105234243.390179-4-memxor@gmail.com
Diffstat (limited to 'tools/lib/bpf/Makefile')
-rw-r--r-- | tools/lib/bpf/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile index b393b5e82380..5f7086fae31c 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) |