From e425d841239d84e9b35ffe131bbe0255db20e874 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Mon, 31 Oct 2022 20:57:52 -0300 Subject: makefiles: organize CFLAGS Line-wrap them and make the order of the flags more similar across src/prog.mk and src/so.mk. This should make it easier to see the differences in CFLAGS between both files. --- src/so.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/so.mk') diff --git a/src/so.mk b/src/so.mk index 6a1497ff6..10c43ad21 100644 --- a/src/so.mk +++ b/src/so.mk @@ -9,7 +9,11 @@ HDRS := $(sort $(wildcard *.h)) $(MOD_HDRS) SRCS := $(sort $(wildcard *.c)) $(MOD_SRCS) OBJS := $(SRCS:.c=.o) $(MOD_OBJS) -CFLAGS += -ggdb $(HAVE_FATAL_WARNINGS) -O2 -DVERSION='"$(VERSION)"' -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIC -Wformat -Wformat-security +CFLAGS += \ + -ggdb $(HAVE_FATAL_WARNINGS) -O2 -DVERSION='"$(VERSION)"' \ + -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security \ + -fPIC + LDFLAGS += -pie -fPIE -Wl,-z,relro -Wl,-z,now .PHONY: all -- cgit v1.2.3-54-g00ecf