From a05150a7f26587d5e331c24134a976285352fbf7 Mon Sep 17 00:00:00 2001
From: David Li
Date: Thu, 6 Aug 2026 12:38:07 +0900
Subject: [PATCH] fix(rust/driver_manager): load with RTLD_NOW
I've omitted tests for now. I think I'd like to build up a suite
of cases like this that we can apply across the C++, Rust, and C#
driver managers to help ensure consistency.
Closes #4663.
---
rust/driver_manager/src/search.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/driver_manager/src/search.rs b/rust/driver_manager/src/search.rs
index 5ee80354cf..0573503b8c 100644
--- a/rust/driver_manager/src/search.rs
+++ b/rust/driver_manager/src/search.rs
@@ -317,7 +317,7 @@ impl<'a> DriverLibrary<'a> {
libloading::os::unix::Library::open(
Some(filename.as_ref()),
- libloading::os::unix::RTLD_LAZY | libloading::os::unix::RTLD_LOCAL | RTLD_NODELETE,
+ libloading::os::unix::RTLD_NOW | libloading::os::unix::RTLD_LOCAL | RTLD_NODELETE,
)
.map(Into::into)
.map_err(libloading_error_to_adbc_error)?