aboutsummaryrefslogtreecommitdiffstats
path: root/src/common.mk.in
diff options
context:
space:
mode:
authorLibravatar Reiner Herrmann <reiner@reiner-h.de>2020-10-08 22:23:52 +0200
committerLibravatar Reiner Herrmann <reiner@reiner-h.de>2020-10-08 22:23:52 +0200
commit5549f89325c324e27a0ba356d02b76591a2fdf43 (patch)
tree65f866f04a890cb9bcde84f9efaf4d59103b5992 /src/common.mk.in
parentbuild: let manpages depend on src/man target instead of non-existing .man files (diff)
downloadfirejail-5549f89325c324e27a0ba356d02b76591a2fdf43.tar.gz
firejail-5549f89325c324e27a0ba356d02b76591a2fdf43.tar.zst
firejail-5549f89325c324e27a0ba356d02b76591a2fdf43.zip
build: add -fPIE to LDFLAGS
according to GCC documentation (https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html): "For predictable results, you must also specify the same set of options used for compilation (-fpie, -fPIE, or model suboptions) when you specify this linker option."
Diffstat (limited to 'src/common.mk.in')
-rw-r--r--src/common.mk.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.mk.in b/src/common.mk.in
index fc0c612ea..c9ef455ed 100644
--- a/src/common.mk.in
+++ b/src/common.mk.in
@@ -36,7 +36,7 @@ CFLAGS += -DPREFIX='"$(prefix)"' -DSYSCONFDIR='"$(sysconfdir)/firejail"' -DLIBDI
36MANFLAGS = $(HAVE_X11) $(HAVE_PRIVATE_HOME) $(HAVE_APPARMOR) $(HAVE_OVERLAYFS) $(HAVE_DBUSPROXY) $(HAVE_FIRETUNNEL) $(HAVE_GLOBALCFG) $(HAVE_CHROOT) $(HAVE_NETWORK) $(HAVE_USERNS) $(HAVE_FILE_TRANSFER) $(HAVE_WHITELIST) $(HAVE_SELINUX) 36MANFLAGS = $(HAVE_X11) $(HAVE_PRIVATE_HOME) $(HAVE_APPARMOR) $(HAVE_OVERLAYFS) $(HAVE_DBUSPROXY) $(HAVE_FIRETUNNEL) $(HAVE_GLOBALCFG) $(HAVE_CHROOT) $(HAVE_NETWORK) $(HAVE_USERNS) $(HAVE_FILE_TRANSFER) $(HAVE_WHITELIST) $(HAVE_SELINUX)
37CFLAGS += $(MANFLAGS) 37CFLAGS += $(MANFLAGS)
38CFLAGS += -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIE -Wformat -Wformat-security 38CFLAGS += -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIE -Wformat -Wformat-security
39LDFLAGS += -pie -Wl,-z,relro -Wl,-z,now -lpthread 39LDFLAGS += -pie -fPIE -Wl,-z,relro -Wl,-z,now -lpthread
40EXTRA_LDFLAGS +=@EXTRA_LDFLAGS@ 40EXTRA_LDFLAGS +=@EXTRA_LDFLAGS@
41 41
42ifdef NO_EXTRA_CFLAGS 42ifdef NO_EXTRA_CFLAGS