Add statically linked Linux aarch64 binary - #5
Open
julianmer wants to merge 1 commit into
Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Linux aarch64 build.
Compiled from
source/at the current HEAD, unmodified, with the flags alreadydocumented for Linux plus
-static. Verified againsttest_lcm/: concentrations matchthe MacOS M4 build digit for digit.
Why static: on a stock
ubuntu:24.04the current x86_64 binary fails withlibgfortran.so.5: cannot open shared object fileand needsapt-get install libgfortran5first. 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 leftbinaries/linux/lcmodel.xzalone. 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'sup to you.
If you'd like, I can follow up with a Makefile change:
-staticby default and theoutput path derived from
uname -m, somakedoes the right thing on eitherarchitecture. I left it out of this PR so your x86_64 build stays untouched.