aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--crypto/CMakeLists.txt1
-rw-r--r--crypto/Makefile.am.macosx-x86_641
-rwxr-xr-xupdate.sh9
3 files changed, 2 insertions, 9 deletions
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt
index 0379899..c978c04 100644
--- a/crypto/CMakeLists.txt
+++ b/crypto/CMakeLists.txt
@@ -111,6 +111,7 @@ if(HOST_ASM_MACOSX_X86_64)
111 bn/arch/amd64/word_clz.S 111 bn/arch/amd64/word_clz.S
112 bn/arch/amd64/bn_arch.c 112 bn/arch/amd64/bn_arch.c
113 ) 113 )
114 add_definitions(-Dendbr64)
114 add_definitions(-DAES_ASM) 115 add_definitions(-DAES_ASM)
115 add_definitions(-DBSAES_ASM) 116 add_definitions(-DBSAES_ASM)
116 add_definitions(-DVPAES_ASM) 117 add_definitions(-DVPAES_ASM)
diff --git a/crypto/Makefile.am.macosx-x86_64 b/crypto/Makefile.am.macosx-x86_64
index b9b89cf..789da0a 100644
--- a/crypto/Makefile.am.macosx-x86_64
+++ b/crypto/Makefile.am.macosx-x86_64
@@ -34,6 +34,7 @@ ASM_X86_64_MACOSX += bn/arch/amd64/bn_arch.c
34EXTRA_DIST += $(ASM_X86_64_MACOSX) 34EXTRA_DIST += $(ASM_X86_64_MACOSX)
35 35
36if HOST_ASM_MACOSX_X86_64 36if HOST_ASM_MACOSX_X86_64
37libcrypto_la_CPPFLAGS += -Dendbr64
37libcrypto_la_CPPFLAGS += -DAES_ASM 38libcrypto_la_CPPFLAGS += -DAES_ASM
38libcrypto_la_CPPFLAGS += -DBSAES_ASM 39libcrypto_la_CPPFLAGS += -DBSAES_ASM
39libcrypto_la_CPPFLAGS += -DVPAES_ASM 40libcrypto_la_CPPFLAGS += -DVPAES_ASM
diff --git a/update.sh b/update.sh
index abf2097..d42cd58 100755
--- a/update.sh
+++ b/update.sh
@@ -194,11 +194,6 @@ fixup_masm() {
194 > $2 194 > $2
195} 195}
196 196
197fixup_macosx() {
198 echo Fixing up $2
199 sed -e 's/endbr64//' $1 > $2
200}
201
202# generate assembly crypto algorithms 197# generate assembly crypto algorithms
203asm_src=$libcrypto_src 198asm_src=$libcrypto_src
204gen_asm_stdout() { 199gen_asm_stdout() {
@@ -210,8 +205,6 @@ gen_asm_stdout() {
210 EOF 205 EOF
211 if [ $1 = "masm" ]; then 206 if [ $1 = "masm" ]; then
212 fixup_masm crypto/$3.tmp crypto/$3 207 fixup_masm crypto/$3.tmp crypto/$3
213 elif [ $1 = "macosx" ]; then
214 fixup_macosx crypto/$3.tmp crypto/$3
215 else 208 else
216 $MV crypto/$3.tmp crypto/$3 209 $MV crypto/$3.tmp crypto/$3
217 fi 210 fi
@@ -238,8 +231,6 @@ gen_asm() {
238 EOF 231 EOF
239 if [ $1 = "masm" ]; then 232 if [ $1 = "masm" ]; then
240 fixup_masm crypto/$3.tmp crypto/$3 233 fixup_masm crypto/$3.tmp crypto/$3
241 elif [ $1 = "macosx" ]; then
242 fixup_macosx crypto/$3.tmp crypto/$3
243 else 234 else
244 $MV crypto/$3.tmp crypto/$3 235 $MV crypto/$3.tmp crypto/$3
245 fi 236 fi