diff options
| author | Kenjiro Nakayama <nakayamakenjiro@gmail.com> | 2026-08-13 16:40:47 +0900 |
|---|---|---|
| committer | Kenjiro Nakayama <nakayamakenjiro@gmail.com> | 2026-08-13 16:59:02 +0900 |
| commit | 9d9f450f475fa1fa0bf5efcddeccb24b2b68e929 (patch) | |
| tree | bf9cfab1f6e7d52495d71ac80599b16b5cd09e40 | |
| parent | 58698377353bd0ea06dd68cefcbd3aee05bb1622 (diff) | |
| download | portable-9d9f450f475fa1fa0bf5efcddeccb24b2b68e929.tar.gz portable-9d9f450f475fa1fa0bf5efcddeccb24b2b68e929.tar.bz2 portable-9d9f450f475fa1fa0bf5efcddeccb24b2b68e929.zip | |
Enable RISC-V BN assembly with autotools
Recognize ELF riscv64 as an assembly-capable target so the
architecture-specific BN helpers are used unless assembly is
explicitly disabled.
| -rw-r--r-- | configure.ac | 2 | ||||
| -rw-r--r-- | crypto/Makefile.am | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 23f0c38..c10a33f 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -136,6 +136,8 @@ AM_CONDITIONAL([HOST_ASM_ELF_MIPS], | |||
| 136 | [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "mips" -a "x$enable_asm" != "xno"]) | 136 | [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "mips" -a "x$enable_asm" != "xno"]) |
| 137 | AM_CONDITIONAL([HOST_ASM_ELF_MIPS64], | 137 | AM_CONDITIONAL([HOST_ASM_ELF_MIPS64], |
| 138 | [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "mips64" -a "x$enable_asm" != "xno"]) | 138 | [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "mips64" -a "x$enable_asm" != "xno"]) |
| 139 | AM_CONDITIONAL([HOST_ASM_ELF_RISCV64], | ||
| 140 | [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "riscv64" -a "x$enable_asm" != "xno"]) | ||
| 139 | AM_CONDITIONAL([HOST_ASM_ELF_X86_64], | 141 | AM_CONDITIONAL([HOST_ASM_ELF_X86_64], |
| 140 | [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"]) | 142 | [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"]) |
| 141 | AM_CONDITIONAL([HOST_ASM_MACOSX_X86_64], | 143 | AM_CONDITIONAL([HOST_ASM_MACOSX_X86_64], |
diff --git a/crypto/Makefile.am b/crypto/Makefile.am index 7969aee..a4a717d 100644 --- a/crypto/Makefile.am +++ b/crypto/Makefile.am | |||
| @@ -212,6 +212,7 @@ include Makefile.am.mingw64-x86_64 | |||
| 212 | if !HOST_ASM_ELF_AARCH64 | 212 | if !HOST_ASM_ELF_AARCH64 |
| 213 | if !HOST_ASM_ELF_MIPS | 213 | if !HOST_ASM_ELF_MIPS |
| 214 | if !HOST_ASM_ELF_MIPS64 | 214 | if !HOST_ASM_ELF_MIPS64 |
| 215 | if !HOST_ASM_ELF_RISCV64 | ||
| 215 | if !HOST_ASM_ELF_X86_64 | 216 | if !HOST_ASM_ELF_X86_64 |
| 216 | if !HOST_ASM_MACOSX_X86_64 | 217 | if !HOST_ASM_MACOSX_X86_64 |
| 217 | if !HOST_ASM_MASM_X86_64 | 218 | if !HOST_ASM_MASM_X86_64 |
| @@ -224,6 +225,7 @@ endif | |||
| 224 | endif | 225 | endif |
| 225 | endif | 226 | endif |
| 226 | endif | 227 | endif |
| 228 | endif | ||
| 227 | 229 | ||
| 228 | if HOST_AARCH64 | 230 | if HOST_AARCH64 |
| 229 | if HOST_DARWIN | 231 | if HOST_DARWIN |
