From: Thomas Lamprecht Date: Wed, 17 May 2023 17:29:44 +0000 (+0200) Subject: buildsys: compile as C11 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=24a23d0f6e3429971fce33da0c7fa032a83cec09;hp=e9ad71ac615e27d713080ecb00f4f32ab2206daa;p=proxmox-mini-journalreader.git buildsys: compile as C11 Signed-off-by: Thomas Lamprecht --- diff --git a/src/Makefile b/src/Makefile index 1ef0974..449004f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -5,7 +5,7 @@ BIN_DIR ?= $(DESTDIR)/usr/bin MAN1_DIR ?= $(DESTDIR)/usr/share/man/man1 LIBS := libsystemd -CFLAGS += -Werror -Wall -Wextra -Wl,-z,relro -g -O2 +CFLAGS += -Werror -Wall -Wextra -Wl,-z,relro -g -O2 --std=gnu11 CFLAGS += -fstack-protector-strong -D_FORTIFY_SOURCE=2 CFLAGS += $(shell pkg-config --cflags $(LIBS)) LDFLAGS += $(shell pkg-config --libs $(LIBS))