Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: DoumanAsh/nng-c-sys
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c6538fdb67d0f3fdb952a35963c6bcd410c37dce
Choose a base ref
..
head repository: DoumanAsh/nng-c-sys
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d52015f00ccb35dbc6885ce7d4a67b7481ef8f87
Choose a head ref
Showing with 3 additions and 0 deletions.
  1. +3 −0 build.rs
3 changes: 3 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -193,8 +193,10 @@ fn build_mbedtls(nng: &mut cmake::Config, is_ninja: bool) {
config.define("ENABLE_TESTING", "OFF");

let mut dest = config.build();

// On some 64bit Linux distributions the library directory is `lib64`
// instead of `lib`. Rename it in the name of consistency.
#[cfg(target_os = "linux")]
let _ = std::fs::rename(dest.as_path().join("lib64"), dest.as_path().join("lib"));

nng.define("MBEDTLS_ROOT_DIR", &dest);
@@ -280,6 +282,7 @@ fn build() {

// On some 64bit Linux distributions the library directory is `lib64`
// instead of `lib`. Rename it in the name of consistency.
#[cfg(target_os = "linux")]
let _ = std::fs::rename(dest.as_path().join("lib64"), dest.as_path().join("lib"));

dest.push("lib");