Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper musl support #6

Merged
merged 2 commits into from
Jan 9, 2024
Merged

Proper musl support #6

merged 2 commits into from
Jan 9, 2024

Conversation

jackkleeman
Copy link
Contributor

@jackkleeman jackkleeman commented Jan 5, 2024

Need to get a full toolchain - musl-devel only gets us gcc, we need g++ etc. Fortunately there are widely used docker containers for arm and x86 that have cross toolchains. We copy those toolchains out into our image, and set all the env vars exactly as we do for gnu targets. Also need to use a linker script to instruct musl targets to always statically link libc++

Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't really tell whether this is correct or not. I trust you on the changes. In any case, we will verify that the built artifacts can be run on a linux platform. So +1 for merging these changes.

@tillrohrmann
Copy link
Contributor

@jackkleeman are you able to use this dev-tools image locally to build cross compiled binaries? I've tried it and it gets stuck in some compilation step. Might be my local env.

@jackkleeman jackkleeman merged commit 453dce5 into main Jan 9, 2024
@jackkleeman jackkleeman deleted the musl branch January 9, 2024 17:23
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.

2 participants