Skip to content

Commit 778c613

Browse files
committed
static liburing
Signed-off-by: Jason Volk <jason@zemos.net>
1 parent ea61002 commit 778c613

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

librocksdb-sys/build.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,14 @@ mod vendor {
767767
)
768768
});
769769
_cfg.define("ROCKSDB_IOURING_PRESENT", Some("1"));
770+
771+
let mode = if cfg!(feature = "static") { "=static" } else { "" };
772+
if cfg!(feature = "static") {
773+
// centos uses its /usr/lib64 search path but liburing.a is installed
774+
// by dnf oddly in /usr/lib unlike other installed archives.
775+
println!("cargo:rustc-link-search=native=/usr/lib");
776+
}
777+
println!("cargo:rustc-link-lib{mode}=uring");
770778
}
771779
}
772780
}

0 commit comments

Comments
 (0)