mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-22 01:09:06 +08:00
Makefile: enforce gnu89 standard
libbpf conforms to kernel style and uses the same -std=gnu89 standard for compilation. So enforce it on Github projection as well. Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
This commit is contained in:
committed by
Andrii Nakryiko
parent
d71409b508
commit
94a49850c5
@@ -20,7 +20,7 @@ ALL_CFLAGS := $(INCLUDES)
|
||||
|
||||
SHARED_CFLAGS += -fPIC -fvisibility=hidden -DSHARED
|
||||
|
||||
CFLAGS ?= -g -O2 -Werror -Wall
|
||||
CFLAGS ?= -g -O2 -Werror -Wall -std=gnu89
|
||||
ALL_CFLAGS += $(CFLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
||||
ALL_LDFLAGS += $(LDFLAGS)
|
||||
ifdef NO_PKG_CONFIG
|
||||
|
||||
Reference in New Issue
Block a user