Skip to content

Use openssl-sys build-dependency instead of manual pkg-config#22

Closed
adsharma wants to merge 2 commits into
mainfrom
fix-openssl-via-openssl-sys
Closed

Use openssl-sys build-dependency instead of manual pkg-config#22
adsharma wants to merge 2 commits into
mainfrom
fix-openssl-via-openssl-sys

Conversation

@adsharma

@adsharma adsharma commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Fixes: #20

Commit b624435 replaced the bundled third-party library linking with a
self-contained liblbug archive, but left a fragile pkg-config invocation
to find OpenSSL. The openssl-sys crate is the standard Rust approach:

  • Uses pkg-config correctly across platforms (macOS, Linux, Windows)
  • Supports OPENSSL_DIR, OPENSSL_LIB_DIR, OPENSSL_INCLUDE_DIR env vars
  • Supports vendored OpenSSL via the 'vendored' feature (openssl-src)
  • Handles OpenSSL 3.x naming and discovery automatically
  • Well-maintained, widely used ecosystem crate

Removed the manual Command::new("pkg-config") + hardcoded
rustc-link-lib directives in favor of openssl-sys as a build-dependency.

adsharma added 2 commits July 5, 2026 10:56
…nSSL linking

 Commit b624435 replaced the bundled third-party library linking with a
 self-contained liblbug archive, but left a fragile pkg-config invocation
 to find OpenSSL. The openssl-sys crate is the standard Rust approach:

 - Uses pkg-config correctly across platforms (macOS, Linux, Windows)
 - Supports OPENSSL_DIR, OPENSSL_LIB_DIR, OPENSSL_INCLUDE_DIR env vars
 - Supports vendored OpenSSL via the 'vendored' feature (openssl-src)
 - Handles OpenSSL 3.x naming and discovery automatically
 - Well-maintained, widely used ecosystem crate

 Removed the manual Command::new("pkg-config") + hardcoded
 rustc-link-lib directives in favor of openssl-sys as a build-dependency.
@adsharma adsharma force-pushed the fix-openssl-via-openssl-sys branch from ab06682 to 137eef1 Compare July 5, 2026 19:00
@adsharma

adsharma commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

This approach isn't working.

@adsharma adsharma closed this Jul 5, 2026
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.

Bug: Linker failure: undefined OpenSSL symbols in extension_installer.cpp.o on aarch64-unknown-linux-gnu — lbug v0.17.1 and v0.18.0

1 participant