Skip to content

Conversation

@HalidOdat
Copy link
Contributor

This introduces the RANLIB_<target-triple> environment variable during compilation, fixing errors encountered when compiling C code via Rust, which is required by OpenSSL.

NOTE: Cargokit does this as well see here.

This introduces the `RANLIB_<target-triple>` environment variable during
compilation, fixing errors encountered when compiling C code via Rust,
which is required by OpenSSL.
Copy link
Owner

@GregoryConrad GregoryConrad left a comment

Choose a reason for hiding this comment

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

LGTM; just confirming this fixed your issue?

@HalidOdat
Copy link
Contributor Author

Just confirming this fixed your issue?

Yes! When I was compiling the openssl-sys crate (which compiles the c code) it failed with armv7a-linux-androideabi-ranlib command not found (which makes sense when looking at the installed ndk, because the only ranlib in the ndk toolchain is llvm-ranlib) adding this fixes it.

Also compiled the code with cargokit and it worked because they have this environment variable.

@GregoryConrad
Copy link
Owner

Thanks for the fix. I don't think this will work in Windows as-is but I'll fix that in a follow up 🚀

@GregoryConrad GregoryConrad enabled auto-merge (squash) January 18, 2026 18:50
@GregoryConrad GregoryConrad merged commit 8dc8b7a into GregoryConrad:main Jan 18, 2026
6 checks passed
@HalidOdat HalidOdat deleted the fix/missing-ranlib-executable branch January 18, 2026 18:59
@GregoryConrad
Copy link
Owner

Fixed in v1.0.3!

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