config (openssl-1.1.1o) | : | config (openssl-1.1.1p) | ||
---|---|---|---|---|
#!/bin/sh | #!/bin/sh | |||
# Copyright 1998-2020 The OpenSSL Project Authors. All Rights Reserved. | # Copyright 1998-2022 The OpenSSL Project Authors. All Rights Reserved. | |||
# | # | |||
# Licensed under the OpenSSL license (the "License"). You may not use | # Licensed under the OpenSSL license (the "License"). You may not use | |||
# this file except in compliance with the License. You can obtain a copy | # this file except in compliance with the License. You can obtain a copy | |||
# in the file LICENSE in the source distribution or at | # in the file LICENSE in the source distribution or at | |||
# https://www.openssl.org/source/license.html | # https://www.openssl.org/source/license.html | |||
# OpenSSL config: determine the operating system and run ./Configure | # OpenSSL config: determine the operating system and run ./Configure | |||
# Derived from minarch and GuessOS from Apache. | # Derived from minarch and GuessOS from Apache. | |||
# | # | |||
# Do "config -h" for usage information. | # Do "config -h" for usage information. | |||
skipping to change at line 711 | skipping to change at line 711 | |||
__CNF_LDFLAGS="$__CNF_LDFLAGS -ldl" ;; | __CNF_LDFLAGS="$__CNF_LDFLAGS -ldl" ;; | |||
alpha*-*-*bsd*) OUT="BSD-generic64"; | alpha*-*-*bsd*) OUT="BSD-generic64"; | |||
__CNF_CPPFLAGS="$__CNF_CPPFLAGS -DL_ENDIAN" ;; | __CNF_CPPFLAGS="$__CNF_CPPFLAGS -DL_ENDIAN" ;; | |||
powerpc64-*-*bsd*) OUT="BSD-generic64"; | powerpc64-*-*bsd*) OUT="BSD-generic64"; | |||
__CNF_CPPFLAGS="$__CNF_CPPFLAGS -DB_ENDIAN" ;; | __CNF_CPPFLAGS="$__CNF_CPPFLAGS -DB_ENDIAN" ;; | |||
riscv64-*-*bsd*) OUT="BSD-riscv64" ;; | riscv64-*-*bsd*) OUT="BSD-riscv64" ;; | |||
sparc64-*-*bsd*) OUT="BSD-sparc64" ;; | sparc64-*-*bsd*) OUT="BSD-sparc64" ;; | |||
ia64-*-*bsd*) OUT="BSD-ia64" ;; | ia64-*-*bsd*) OUT="BSD-ia64" ;; | |||
x86_64-*-dragonfly*) OUT="BSD-x86_64" ;; | x86_64-*-dragonfly*) OUT="BSD-x86_64" ;; | |||
amd64-*-*bsd*) OUT="BSD-x86_64" ;; | amd64-*-*bsd*) OUT="BSD-x86_64" ;; | |||
arm64-*-*bsd*) OUT="BSD-aarch64" ;; | ||||
*86*-*-*bsd*) # mimic ld behaviour when it's looking for libc.. . | *86*-*-*bsd*) # mimic ld behaviour when it's looking for libc.. . | |||
if [ -L /usr/lib/libc.so ]; then # [Free|Net]BSD | if [ -L /usr/lib/libc.so ]; then # [Free|Net]BSD | |||
libc=/usr/lib/libc.so | libc=/usr/lib/libc.so | |||
else # OpenBSD | else # OpenBSD | |||
# ld searches for highest libc.so.* and so do we | # ld searches for highest libc.so.* and so do we | |||
libc=`(ls /usr/lib/libc.so.* /lib/libc.so.* | tail -1 ) 2>/dev/null` | libc=`(ls /usr/lib/libc.so.* /lib/libc.so.* | tail -1 ) 2>/dev/null` | |||
fi | fi | |||
case "`(file -L $libc) 2>/dev/null`" in | case "`(file -L $libc) 2>/dev/null`" in | |||
*ELF*) OUT="BSD-x86-elf" ;; | *ELF*) OUT="BSD-x86-elf" ;; | |||
*) OUT="BSD-x86"; options="$options no-sse2" ;; | *) OUT="BSD-x86"; options="$options no-sse2" ;; | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added |