Skip to content

Commit 3a74ac2

Browse files
kkdwvdAlexei Starovoitov
authored andcommitted
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 <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent c23551c commit 3a74ac2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/lib/bpf/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ else
8484
endif
8585

8686
# Append required CFLAGS
87+
override CFLAGS += -std=gnu89
8788
override CFLAGS += $(EXTRA_WARNINGS) -Wno-switch-enum
8889
override CFLAGS += -Werror -Wall
8990
override CFLAGS += $(INCLUDES)

0 commit comments

Comments
 (0)