Skip to content

Commit 11e4b84

Browse files
flxolukefrasera
andauthored
nng-sys: support for Fedora 64bit directory linking (#29) (#41)
support for fedora systems where cmake defaults to the lib64 directory for 64bit architectures --------- Co-authored-by: Luke Fraser <luke@fratkins.com>
1 parent c399535 commit 11e4b84

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nng-sys/build.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,12 @@ fn build_vendored() -> (LibrarySource, Vec<PathBuf>) {
435435
// that holds nng.lib
436436
dst.join("build/Release")
437437
} else {
438-
dst.join("lib")
438+
let lib64 = dst.join("lib64");
439+
if lib64.exists() {
440+
lib64
441+
} else {
442+
dst.join("lib")
443+
}
439444
};
440445

441446
let include_dir = dst.join("include");

0 commit comments

Comments
 (0)