VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-12-18 12:06:58 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-12-26 00:00:03 +0100
commit3d978c31a7fd37d633ca2baf749b2e9f187a0b8f (patch)
tree9d8151ff0cccdefbcfd5dacab67636b3d3a086d3
parent9b0669da2980f53d5f1c3d3017bd182a9d367281 (diff)
downloadVeraCrypt-3d978c31a7fd37d633ca2baf749b2e9f187a0b8f.tar.gz
VeraCrypt-3d978c31a7fd37d633ca2baf749b2e9f187a0b8f.zip
MacOSX: use Yasm to build Twofish 64-bit assembly code on OSX since native compiler doesn't support GAS syntax
-rw-r--r--src/Makefile2
-rw-r--r--src/Volume/Volume.make2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 00e6e5b3..dea172f6 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -39,6 +39,7 @@ export AR ?= ar
39export CC ?= gcc 39export CC ?= gcc
40export CXX ?= g++ 40export CXX ?= g++
41export AS := nasm 41export AS := nasm
42export YASM := yasm
42export RANLIB ?= ranlib 43export RANLIB ?= ranlib
43 44
44export CFLAGS := -Wall 45export CFLAGS := -Wall
@@ -251,6 +252,7 @@ ifeq "$(shell uname -s)" "Darwin"
251 endif 252 endif
252 253
253 AS := $(BASE_DIR)/Build/Tools/MacOSX/nasm 254 AS := $(BASE_DIR)/Build/Tools/MacOSX/nasm
255 YASM := $(BASE_DIR)/Build/Tools/MacOSX/yasm
254 ASFLAGS += --prefix _ 256 ASFLAGS += --prefix _
255 257
256 ifeq "$(TC_BUILD_CONFIG)" "Release" 258 ifeq "$(TC_BUILD_CONFIG)" "Release"
diff --git a/src/Volume/Volume.make b/src/Volume/Volume.make
index f6a8cec8..40f1281d 100644
--- a/src/Volume/Volume.make
+++ b/src/Volume/Volume.make
@@ -76,7 +76,7 @@ ifeq "$(PLATFORM)" "MacOSX"
76 rm -fr ../Crypto/Aes_x86.o ../Crypto/Aes_x64.o 76 rm -fr ../Crypto/Aes_x86.o ../Crypto/Aes_x64.o
77../Crypto/Twofish_asm.oo: ../Crypto/Twofish_x64.S 77../Crypto/Twofish_asm.oo: ../Crypto/Twofish_x64.S
78 @echo Assembling $(<F) 78 @echo Assembling $(<F)
79 $(CC) -arch x86_64 -c ../Crypto/Twofish_x64.S -o ../Crypto/Twofish_asm.oo 79 $(YASM) -p gas -f macho64 -o ../Crypto/Twofish_asm.oo ../Crypto/Twofish_x64.S
80endif 80endif
81 81
82include $(BUILD_INC)/Makefile.inc 82include $(BUILD_INC)/Makefile.inc