sharkdp / bat

A cat(1) clone with wings.
Apache License 2.0
47.6k stars 1.18k forks source link

Support 'statically linked binary' for aarch64 in 'Release' page #2992

Closed tzq0301 closed 2 weeks ago

tzq0301 commented 3 weeks ago

There is an artifact built by CI of my repo: https://github.com/tzq0301/bat/actions/runs/9400304021/artifacts/1574889384 (open this link in a new tab, and it will begin to download)

The output can be worked well in my Debian VM on MacBook Pro (M1), and file command shows that it is statically linked:

$ file ./bat
./bat: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, stripped
tzq0301 commented 2 weeks ago

Artifact bat-v0.24.0-aarch64-unknown-linux-musl.tar.gz built by CI works well on my aarch64 Debian:

$ uname -a
Linux debian 6.1.0-21-arm64 #1 SMP Debian 6.1.90-1 (2024-05-03) aarch64 GNU/Linux

$ file bat
bat: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, missing section headers at 5238200

$ ldd bat
    not a dynamic executable

$ ./bat -V
bat 0.24.0 (1b33853)