aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtrace
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/libtrace
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/libtrace')
-rw-r--r--src/libtrace/Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libtrace/Makefile.in b/src/libtrace/Makefile.in
index 2070fe0ea..5c7d0f885 100644
--- a/src/libtrace/Makefile.in
+++ b/src/libtrace/Makefile.in
@@ -9,7 +9,7 @@ C_FILE_LIST = $(sort $(wildcard *.c))
9OBJS = $(C_FILE_LIST:.c=.o) 9OBJS = $(C_FILE_LIST:.c=.o)
10BINOBJS = $(foreach file, $(OBJS), $file) 10BINOBJS = $(foreach file, $(OBJS), $file)
11CFLAGS += -ggdb $(HAVE_FATAL_WARNINGS) -O2 -DVERSION='"$(VERSION)"' -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIC -Wformat -Wformat-security 11CFLAGS += -ggdb $(HAVE_FATAL_WARNINGS) -O2 -DVERSION='"$(VERSION)"' -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIC -Wformat -Wformat-security
12LDFLAGS += -pie -Wl,-z,relro -Wl,-z,now 12LDFLAGS += -pie -fPIE -Wl,-z,relro -Wl,-z,now
13 13
14all: libtrace.so 14all: libtrace.so
15 15