VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-13 13:45:12 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-13 13:46:53 +0200
commiteb4f5ac4e7fedae6061a9615d41dd6c2c8779c92 (patch)
tree953c81975f40cd61c9d8d3d4d4a358ec4aa6db7d /src
parentba1fbb688edf7db0edf3ea9d24a95d5a5ef2260c (diff)
downloadVeraCrypt-eb4f5ac4e7fedae6061a9615d41dd6c2c8779c92.tar.gz
VeraCrypt-eb4f5ac4e7fedae6061a9615d41dd6c2c8779c92.zip
Linux: built VeraCrypt binary with support for Address Space Layout Randomization (ASLR).
Diffstat (limited to 'src')
-rw-r--r--src/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Makefile b/src/Makefile
index 1b71f27f..3b6c0867 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -189,15 +189,15 @@ ifeq "$(shell uname -s)" "Linux"
endif
ifeq "$(TC_BUILD_CONFIG)" "Release"
- C_CXX_FLAGS += -fdata-sections -ffunction-sections
- LFLAGS += -Wl,--gc-sections
+ C_CXX_FLAGS += -fdata-sections -ffunction-sections -fpie
+ LFLAGS += -Wl,--gc-sections -pie
ifneq "$(shell ld --help 2>&1 | grep sysv | wc -l)" "0"
LFLAGS += -Wl,--hash-style=sysv
endif
- WXCONFIG_CFLAGS += -fdata-sections -ffunction-sections
- WXCONFIG_CXXFLAGS += -fdata-sections -ffunction-sections
+ WXCONFIG_CFLAGS += -fdata-sections -ffunction-sections -fpie
+ WXCONFIG_CXXFLAGS += -fdata-sections -ffunction-sections -fpie
endif
ifneq "$(origin WXSTATIC)" "command line"