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
This commit is contained in:
Kumar Kartikeya Dwivedi 2021-11-06 05:12:40 +05:30 коммит произвёл Alexei Starovoitov
Родитель c23551c9c3
Коммит 3a74ac2d11
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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)