]> git.proxmox.com Git - proxmox-mini-journalreader.git/commitdiff
buildsys: compile as C11
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 May 2023 17:29:44 +0000 (19:29 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 May 2023 17:29:50 +0000 (19:29 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/Makefile

index 1ef0974598dd685084aac3287851e3f0937743b6..449004fdf5e93a02ec4b7a51172eee810b95f19e 100644 (file)
@@ -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))