We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea61002 commit 778c613Copy full SHA for 778c613
1 file changed
librocksdb-sys/build.rs
@@ -767,6 +767,14 @@ mod vendor {
767
)
768
});
769
_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");
778
}
779
780
0 commit comments