bat
bat copied to clipboard
Provide Statically Compiled Binaries for (aarch64|arm64) Linux
Hi, the current releases for arm64 Linux is based on gnu and not musl. As a result, the binary is dynamically linked:
$ https://github.com/sharkdp/bat/releases/download/v0.24.0/bat-v0.24.0-aarch64-unknown-linux-gnu.tar.gz
$ file bat && ldd bat
bat: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=9a4cf4306649c9b362c06eba7248c1f9b4a6bbb7, stripped
linux-vdso.so.1 (0x0000ffffbcfee000)
libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x0000ffffbca80000)
libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000ffffbca60000)
libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x0000ffffbc9c0000)
libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000ffffbc810000)
/lib/ld-linux-aarch64.so.1 (0x0000ffffbcfb5000)
Adding target: aarch64-unknown-linux-musl in https://github.com/sharkdp/bat/blob/master/.github/workflows/CICD.yml should work.
However, you can release an even more optimized binary, based on : https://github.com/Azathothas/Toolpacks/blob/main/.github/scripts/aarch64_Linux/bins/batcat.sh
$ file "./target/$RUST_TARGET/release/bat"
./target/aarch64-unknown-linux-musl/release/bat: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, stripped