Relax glibc requirements on x86_64-unknown-linux-gnu by sharkdp · Pull Request #2194 · sharkdp/bat (original) (raw)

The Docker images used by cross use very old versions of glibc, so we can simply "cross" compile to fix #2106.

Before (binary from a recent master build):

▶ objdump -T bat|rg 'GLIBC_2.[0-9][0-9]'      
0000000000000000      DF *UND*	0000000000000000 (GLIBC_2.29) log
0000000000000000  w   DF *UND*	0000000000000000 (GLIBC_2.18) __cxa_thread_atexit_impl
0000000000000000  w   DF *UND*	0000000000000000 (GLIBC_2.25) getrandom
0000000000000000      DF *UND*	0000000000000000 (GLIBC_2.15) posix_spawnp
0000000000000000  w   DF *UND*	0000000000000000 (GLIBC_2.28) statx
0000000000000000  w   DF *UND*	0000000000000000 (GLIBC_2.29) posix_spawn_file_actions_addchdir_np
0000000000000000      DF *UND*	0000000000000000 (GLIBC_2.17) clock_gettime
0000000000000000      DF *UND*	0000000000000000 (GLIBC_2.14) memcpy

This PR:

▶ objdump -T bat|rg 'GLIBC_2.[0-9][0-9]'      
0000000000000000  w   DF *UND*	0000000000000000 (GLIBC_2.18) __cxa_thread_atexit_impl
0000000000000000      DF *UND*	0000000000000000 (GLIBC_2.14) memcpy
0000000000000000      DF *UND*	0000000000000000 (GLIBC_2.15) posix_spawnp

closes #2106