diff options
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | configure.ac | 7 |
2 files changed, 3 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 66d04ba..599515f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -345,9 +345,7 @@ if(ENABLE_ASM) | |||
345 | endif() | 345 | endif() |
346 | add_definitions(-DHAVE_GNU_STACK) | 346 | add_definitions(-DHAVE_GNU_STACK) |
347 | elseif(APPLE AND "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64") | 347 | elseif(APPLE AND "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64") |
348 | # disable for now (.section .rodata invalid) | 348 | set(HOST_ASM_MACOSX_X86_64 true) |
349 | # set(HOST_ASM_MACOSX_X86_64 true) | ||
350 | set(ENABLE_ASM false) | ||
351 | elseif(MSVC AND ("${CMAKE_GENERATOR}" MATCHES "Win64" OR "${CMAKE_GENERATOR_PLATFORM}" STREQUAL "x64")) | 349 | elseif(MSVC AND ("${CMAKE_GENERATOR}" MATCHES "Win64" OR "${CMAKE_GENERATOR_PLATFORM}" STREQUAL "x64")) |
352 | set(HOST_ASM_MASM_X86_64 true) | 350 | set(HOST_ASM_MASM_X86_64 true) |
353 | ENABLE_LANGUAGE(ASM_MASM) | 351 | ENABLE_LANGUAGE(ASM_MASM) |
diff --git a/configure.ac b/configure.ac index d8bf28e..c89fe95 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -74,6 +74,7 @@ AC_ARG_ENABLE([tests], | |||
74 | AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" = xyes]) | 74 | AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" = xyes]) |
75 | 75 | ||
76 | AS_CASE([$host_cpu], | 76 | AS_CASE([$host_cpu], |
77 | [arm64], [host_cpu=aarch64], | ||
77 | [*arm*], [host_cpu=arm], | 78 | [*arm*], [host_cpu=arm], |
78 | [*amd64*], [host_cpu=x86_64 HOSTARCH=intel], | 79 | [*amd64*], [host_cpu=x86_64 HOSTARCH=intel], |
79 | [i?86], [host_cpu=i386 HOSTARCH=intel], | 80 | [i?86], [host_cpu=i386 HOSTARCH=intel], |
@@ -110,17 +111,13 @@ int main() {return 0;} | |||
110 | 111 | ||
111 | AC_ARG_ENABLE([asm], | 112 | AC_ARG_ENABLE([asm], |
112 | AS_HELP_STRING([--disable-asm], [Disable assembly])) | 113 | AS_HELP_STRING([--disable-asm], [Disable assembly])) |
113 | # Disable below while updating to support upstream assembly changes | 114 | AM_CONDITIONAL([OPENSSL_NO_ASM], [test "x$enable_asm" = "xno" -o "$host_cpu" = "aarch64"]) |
114 | AM_CONDITIONAL([OPENSSL_NO_ASM], [true]) | ||
115 | enable_asm = "no" | ||
116 | # AM_CONDITIONAL([OPENSSL_NO_ASM], [test "x$enable_asm" = "xno"]) | ||
117 | 115 | ||
118 | # Conditionally enable assembly by default | 116 | # Conditionally enable assembly by default |
119 | AM_CONDITIONAL([HOST_ASM_ELF_ARM], | 117 | AM_CONDITIONAL([HOST_ASM_ELF_ARM], |
120 | [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "arm" -a "x$enable_asm" != "xno"]) | 118 | [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "arm" -a "x$enable_asm" != "xno"]) |
121 | AM_CONDITIONAL([HOST_ASM_ELF_X86_64], | 119 | AM_CONDITIONAL([HOST_ASM_ELF_X86_64], |
122 | [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"]) | 120 | [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"]) |
123 | |||
124 | AM_CONDITIONAL([HOST_ASM_MACOSX_X86_64], | 121 | AM_CONDITIONAL([HOST_ASM_MACOSX_X86_64], |
125 | [test "x$HOST_ABI" = "xmacosx" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"]) | 122 | [test "x$HOST_ABI" = "xmacosx" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"]) |
126 | AM_CONDITIONAL([HOST_ASM_MASM_X86_64], | 123 | AM_CONDITIONAL([HOST_ASM_MASM_X86_64], |