mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 02:58:02 -06:00
Linux: built VeraCrypt binary with support for Address Space Layout Randomization (ASLR).
This commit is contained in:
@@ -189,15 +189,15 @@ ifeq "$(shell uname -s)" "Linux"
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq "$(TC_BUILD_CONFIG)" "Release"
|
ifeq "$(TC_BUILD_CONFIG)" "Release"
|
||||||
C_CXX_FLAGS += -fdata-sections -ffunction-sections
|
C_CXX_FLAGS += -fdata-sections -ffunction-sections -fpie
|
||||||
LFLAGS += -Wl,--gc-sections
|
LFLAGS += -Wl,--gc-sections -pie
|
||||||
|
|
||||||
ifneq "$(shell ld --help 2>&1 | grep sysv | wc -l)" "0"
|
ifneq "$(shell ld --help 2>&1 | grep sysv | wc -l)" "0"
|
||||||
LFLAGS += -Wl,--hash-style=sysv
|
LFLAGS += -Wl,--hash-style=sysv
|
||||||
endif
|
endif
|
||||||
|
|
||||||
WXCONFIG_CFLAGS += -fdata-sections -ffunction-sections
|
WXCONFIG_CFLAGS += -fdata-sections -ffunction-sections -fpie
|
||||||
WXCONFIG_CXXFLAGS += -fdata-sections -ffunction-sections
|
WXCONFIG_CXXFLAGS += -fdata-sections -ffunction-sections -fpie
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq "$(origin WXSTATIC)" "command line"
|
ifneq "$(origin WXSTATIC)" "command line"
|
||||||
|
|||||||
Reference in New Issue
Block a user