merge bitcoin#22305: Avoid fcntl64@GLIBC_2.28 in libsqlite3.a

This commit is contained in:
Kittywhiskers Van Gogh 2023-05-17 06:34:13 +00:00 committed by PastaPastaPasta
parent 0fcc90cd3a
commit 772ec4c536

View File

@ -33,13 +33,19 @@ import pixie
# - libc version 2.28 (http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/) # - libc version 2.28 (http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/)
# #
# See https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html for more info. # See https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html for more info.
#
# For 32-bit systems the minimum libc version is 2.28 to embrace new fcntl{64} symbols.
# It is safer than handling them in the glibc_compat.cpp due to their variadic arguments
# with possible different sizes.
# See: https://stackoverflow.com/a/58472959
#
MAX_VERSIONS = { MAX_VERSIONS = {
'GCC': (4,8,0), 'GCC': (4,8,0),
'GLIBC': { 'GLIBC': {
pixie.EM_386: (2,18), pixie.EM_386: (2,28),
pixie.EM_X86_64: (2,18), pixie.EM_X86_64: (2,18),
pixie.EM_ARM: (2,18), pixie.EM_ARM: (2,28),
pixie.EM_AARCH64:(2,18), pixie.EM_AARCH64:(2,18),
pixie.EM_PPC64: (2,18), pixie.EM_PPC64: (2,18),
pixie.EM_RISCV: (2,27), pixie.EM_RISCV: (2,27),