Files
termux-packages/packages/rust/dlopen.patch
2023-01-03 11:01:14 +00:00

14 lines
527 B
Diff

--- a/src/tools/rust-analyzer/crates/proc-macro-srv/src/dylib.rs
+++ b/src/tools/rust-analyzer/crates/proc-macro-srv/src/dylib.rs
@@ -71,9 +71,8 @@ fn load_library(file: &Path) -> Result<Library, libloading::Error> {
use std::os::raw::c_int;
const RTLD_NOW: c_int = 0x00002;
- const RTLD_DEEPBIND: c_int = 0x00008;
- unsafe { UnixLibrary::open(Some(file), RTLD_NOW | RTLD_DEEPBIND).map(|lib| lib.into()) }
+ unsafe { UnixLibrary::open(Some(file), RTLD_NOW).map(|lib| lib.into()) }
}
#[derive(Debug)]