-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
build fully statically linked executable for Android not supported #10765
Comments
Seems like on Android
If you feel hard to tell whether it is a bug from Cargo, I'd recommend asking on the user forum. Community there is often more helpful for general usage questions. I am going to close this for now. We can reopen it at anytime if there are things Cargo can improve on. Thanks for the report! |
This is an issue (or rather lack of a feature) with rustc and libc, not with cargo. It would be really great to implement this, it's been in my work queue for years, just never with a high enough priority. |
Yes, if this feature is implemented, we can link the lastest libc.a to the executable, then the executable can be run on older devices. |
@leleliu008 |
@petrochenkov Thanks for the hint. |
Problem
I want to build a fully statically linked executable for Android.
I respectively tried following settings:
both are not work. the final executable is always dynamically-linked.
Steps
build https://github.com/sharkdp/bat.git for Android
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: