VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-26 16:53:12 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-27 00:55:22 +0200
commit3d8260d3d3243ff5747b846cde296642156f51b0 (patch)
treec12fe1bfa0c8619a3dbdafbc3fd1d7411b30c0ae /src/Makefile
parente8bafa6a378852977326c060c505b6487232664b (diff)
downloadVeraCrypt-3d8260d3d3243ff5747b846cde296642156f51b0.tar.gz
VeraCrypt-3d8260d3d3243ff5747b846cde296642156f51b0.zip
MacOSX: various changes for assembly files build. Don't use 32-bit assembly code of SHA-512 since it is not compatible with PIE configuration of OSX compiler (absolute addressing used)
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index c09828a5..3e8a9e32 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -44,7 +44,7 @@ export RANLIB ?= ranlib
export CFLAGS := -Wall
export CXXFLAGS := -Wall -Wno-unused-parameter
C_CXX_FLAGS := -MMD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I$(BASE_DIR) -I$(BASE_DIR)/Crypto
-export ASFLAGS := -D __GNUC__
+export ASFLAGS := -D __GNUC__ -D __YASM__
export LFLAGS :=
export PKG_CONFIG_PATH ?= /usr/local/lib/pkgconfig
@@ -251,8 +251,8 @@ ifeq "$(shell uname -s)" "Darwin"
endif
AS := $(BASE_DIR)/Build/Tools/MacOSX/yasm
- export ASFLAGS32 := -D __GNUC__ -D __BITS__=32 --prefix _ -f macho32
- export ASFLAGS64 := -D __GNUC__ -D __BITS__=64 --prefix _ -f macho64
+ export ASFLAGS32 := -D __GNUC__ -D __YASM__ -D __BITS__=32 --prefix=_ -f macho32
+ export ASFLAGS64 := -D __GNUC__ -D __YASM__ -D __BITS__=64 --prefix=_ -f macho64
ifeq "$(TC_BUILD_CONFIG)" "Release"