Skip to content

Add statically linked Linux aarch64 binary - #5

Open
julianmer wants to merge 1 commit into
schorschinho:mainfrom
julianmer:linux-aarch64-binary
Open

Add statically linked Linux aarch64 binary#5
julianmer wants to merge 1 commit into
schorschinho:mainfrom
julianmer:linux-aarch64-binary

Conversation

@julianmer

Copy link
Copy Markdown
Contributor

Adds a Linux aarch64 build.

Compiled from source/ at the current HEAD, unmodified, with the flags already
documented for Linux plus -static. Verified against test_lcm/: concentrations match
the MacOS M4 build digit for digit.

Why static: on a stock ubuntu:24.04 the current x86_64 binary fails with
libgfortran.so.5: cannot open shared object file and needs apt-get install libgfortran5 first. The static build runs on Ubuntu and Alpine with nothing installed,
for about 120 KB more compressed.

Layout: I put it in binaries/linux/aarch64/ and left binaries/linux/lcmodel.xz
alone. That leaves the Linux builds asymmetric — might be worth moving the Debian one
into binaries/linux/x86_64/ too, the way MacOS and Windows are organised, but that's
up to you.

If you'd like, I can follow up with a Makefile change: -static by default and the
output path derived from uname -m, so make does the right thing on either
architecture. I left it out of this PR so your x86_64 build stays untouched.

Adds a Linux aarch64 build, the one platform not yet covered. Compiled
from source/ at the current HEAD, unmodified, with the flags already
documented for Linux plus -static, so it needs no libgfortran on the
target machine.

Documents the command under Compilation procedures, alongside the
existing Windows and MacOS entries.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant