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

fix host and target linker problem #133

Closed

Conversation

banditopazzo
Copy link
Contributor

Summary

I've read all the threads discussing the issue and I've ported the same concepts used in buildroot.

Details

In particular it uses unstable flags to set different linkers for host and target, pointing respectively to linker-native-wrapper.sh and linker-wrapper.sh.

I've removed the linked section generation in the global toml file for consistency with buildroot and also to have linker settings near the unstable flag because part of the them are also unstable.

Without using these flags is impossible to compiler a normal rust application because right now almost all rust applications use dependencies with build scripts inside. These flags also enforce others correct behaviours for cross compilation.

In the end using these flags should be safe, other people have already used them; in case someone complains about that we can always revert the changes and find a better alternative.

Added

  • unstable flags to better support cross compilation

Fixed

  • typo in liker path

Closes #97

@banditopazzo banditopazzo changed the title fix: host and target linker problem; small typo fix host and target linker problem Nov 19, 2022
@posborne
Copy link
Member

Addressed as part of #146

@posborne posborne closed this Oct 10, 2023
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.

Support for build scripts where host and target architecture match
2 participants