From a37daf15bb02ee02e60a953e6807a59f03a896d3 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Wed, 31 May 2023 05:09:04 -0300 Subject: build: organize warning flags in CFLAGS --- src/prog.mk | 6 ++++-- src/so.mk | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/prog.mk b/src/prog.mk index b2ccf6147..537244656 100644 --- a/src/prog.mk +++ b/src/prog.mk @@ -10,8 +10,10 @@ SRCS := $(sort $(wildcard *.c)) $(MOD_SRCS) OBJS := $(SRCS:.c=.o) $(MOD_OBJS) PROG_CFLAGS = \ - -ggdb $(HAVE_FATAL_WARNINGS) -O2 -DVERSION='"$(VERSION)"' \ - -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security \ + -ggdb -O2 -DVERSION='"$(VERSION)"' \ + $(HAVE_FATAL_WARNINGS) \ + -Wformat -Wformat-security \ + -fstack-protector-all -D_FORTIFY_SOURCE=2 \ -fPIE \ -DPREFIX='"$(prefix)"' -DSYSCONFDIR='"$(sysconfdir)/firejail"' \ -DLIBDIR='"$(libdir)"' -DBINDIR='"$(bindir)"' \ diff --git a/src/so.mk b/src/so.mk index 28bd229e5..8787c71b8 100644 --- a/src/so.mk +++ b/src/so.mk @@ -10,8 +10,10 @@ SRCS := $(sort $(wildcard *.c)) $(MOD_SRCS) OBJS := $(SRCS:.c=.o) $(MOD_OBJS) SO_CFLAGS = \ - -ggdb $(HAVE_FATAL_WARNINGS) -O2 -DVERSION='"$(VERSION)"' \ - -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security \ + -ggdb -O2 -DVERSION='"$(VERSION)"' \ + $(HAVE_FATAL_WARNINGS) \ + -Wformat -Wformat-security \ + -fstack-protector-all -D_FORTIFY_SOURCE=2 \ -fPIC SO_LDFLAGS = -pie -fPIE -Wl,-z,relro -Wl,-z,now -- cgit v1.2.3-54-g00ecf