emk / rust-musl-builder

Docker images for compiling static Rust binaries using musl-libc and musl-gcc, with static versions of useful C libraries. Supports openssl and diesel crates.
Apache License 2.0
1.54k stars 193 forks source link

Add support for static linking of `sqlx` #99

Closed emk closed 4 years ago

emk commented 4 years ago

sqlx requires linking against OpenSSL twice:

You can find the details here:

launchbadge/sqlx#670 sfackler/rust-openssl#1337

We go with the fix proposed by @sfackler, and add a test program that we can use to verify everything works correctly.

We remove a few OPENSSL-related variables that were added 4 years ago, and that no longer appear to be needed.