diff options
Diffstat (limited to '')
-rw-r--r-- | crypto/CMakeLists.txt | 1 | ||||
-rw-r--r-- | crypto/Makefile.am.macosx-x86_64 | 1 | ||||
-rwxr-xr-x | update.sh | 9 |
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 | |||
34 | EXTRA_DIST += $(ASM_X86_64_MACOSX) | 34 | EXTRA_DIST += $(ASM_X86_64_MACOSX) |
35 | 35 | ||
36 | if HOST_ASM_MACOSX_X86_64 | 36 | if HOST_ASM_MACOSX_X86_64 |
37 | libcrypto_la_CPPFLAGS += -Dendbr64 | ||
37 | libcrypto_la_CPPFLAGS += -DAES_ASM | 38 | libcrypto_la_CPPFLAGS += -DAES_ASM |
38 | libcrypto_la_CPPFLAGS += -DBSAES_ASM | 39 | libcrypto_la_CPPFLAGS += -DBSAES_ASM |
39 | libcrypto_la_CPPFLAGS += -DVPAES_ASM | 40 | libcrypto_la_CPPFLAGS += -DVPAES_ASM |
@@ -194,11 +194,6 @@ fixup_masm() { | |||
194 | > $2 | 194 | > $2 |
195 | } | 195 | } |
196 | 196 | ||
197 | fixup_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 |
203 | asm_src=$libcrypto_src | 198 | asm_src=$libcrypto_src |
204 | gen_asm_stdout() { | 199 | gen_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 |