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

cmake: Support setting the dynamic linker #19631

Closed

Conversation

erikarvstedt
Copy link
Contributor

This allows building Zig with the correct dynamic linker in environments where the auto detection mechanism fails, like in Nix dev shells.

(--host-dynamic-linker has been in std.Build for a while now, but it only recently became available to cmake via a zig1.wasm update.)

@andrewrk
Copy link
Member

andrewrk commented Apr 18, 2024

Please see #19684. I think this functionality was a mistake. Distros will need to use the -Ddynamic-linker=foo option created by standardTargetOptions for zig projects.

@andrewrk andrewrk closed this Apr 18, 2024
@erikarvstedt erikarvstedt deleted the cmake-dynamic-linker branch April 18, 2024 09:31
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