aboutsummaryrefslogtreecommitdiffstats
path: root/src/so.mk
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2022-10-31 20:57:52 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2022-11-21 17:37:17 -0300
commite425d841239d84e9b35ffe131bbe0255db20e874 (patch)
treecbcae4db1ac7d6be6123ecbca92da57321c46115 /src/so.mk
parentmakefiles: mention variables intended to be used by includers (diff)
downloadfirejail-e425d841239d84e9b35ffe131bbe0255db20e874.tar.gz
firejail-e425d841239d84e9b35ffe131bbe0255db20e874.tar.zst
firejail-e425d841239d84e9b35ffe131bbe0255db20e874.zip
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.
Diffstat (limited to 'src/so.mk')
-rw-r--r--src/so.mk6
1 files changed, 5 insertions, 1 deletions
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)
9SRCS := $(sort $(wildcard *.c)) $(MOD_SRCS) 9SRCS := $(sort $(wildcard *.c)) $(MOD_SRCS)
10OBJS := $(SRCS:.c=.o) $(MOD_OBJS) 10OBJS := $(SRCS:.c=.o) $(MOD_OBJS)
11 11
12CFLAGS += -ggdb $(HAVE_FATAL_WARNINGS) -O2 -DVERSION='"$(VERSION)"' -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIC -Wformat -Wformat-security 12CFLAGS += \
13 -ggdb $(HAVE_FATAL_WARNINGS) -O2 -DVERSION='"$(VERSION)"' \
14 -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security \
15 -fPIC
16
13LDFLAGS += -pie -fPIE -Wl,-z,relro -Wl,-z,now 17LDFLAGS += -pie -fPIE -Wl,-z,relro -Wl,-z,now
14 18
15.PHONY: all 19.PHONY: all