Skip to content

Fix Android cross-build with vendored OpenSSL#99

Closed
lucidium wants to merge 1 commit into
Mygod:mainfrom
lucidium:cross-build-fixes
Closed

Fix Android cross-build with vendored OpenSSL#99
lucidium wants to merge 1 commit into
Mygod:mainfrom
lucidium:cross-build-fixes

Conversation

@lucidium
Copy link
Copy Markdown

Summary

This fixes Android cargo-ndk cross-compilation of slipstream-client with vendored OpenSSL enabled.

The changes:

  • forward vendored OPENSSL_CRYPTO_LIBRARY / OPENSSL_SSL_LIBRARY paths to picoquic CMake when available;
  • force static OpenSSL lookup for vendored Android builds;
  • isolate Android builds from host pkg-config paths to avoid accidentally picking up Homebrew/macOS OpenSSL;
  • enable minimal picoquic build mode for Android;
  • replace Bash 4-only lowercase expansion in scripts/build_picoquic.sh with portable tr, so the script works with macOS default Bash 3.2.

Validation

Validated from an Android Gradle/cargo-ndk integration by building slipstream-client successfully for:

  • aarch64-linux-android / arm64-v8a
  • x86_64-linux-android / x86_64
  • armv7-linux-androideabi / armeabi-v7a
  • i686-linux-android / x86

The build keeps OpenSSL enabled for picotls-openssl / certificate pinning support.

Forward vendored OpenSSL library paths to picoquic CMake during Android cargo-ndk builds, isolate Android builds from host pkg-config state, enable minimal picoquic Android builds, and avoid Bash 4-only lowercase expansion in build_picoquic.sh for macOS Bash compatibility.
@lucidium lucidium closed this Jun 1, 2026
@lucidium lucidium deleted the cross-build-fixes branch June 1, 2026 05:42
@lucidium lucidium restored the cross-build-fixes branch June 1, 2026 11:00
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.

1 participant