fix not using RTLD_LOCAL on darwin

This commit is contained in:
Laytan Laats
2025-02-06 19:15:12 +01:00
parent b86d2c30b6
commit 80d09774b4

View File

@@ -13,6 +13,8 @@ _load_library :: proc(path: string, global_symbols: bool, allocator: runtime.All
flags := posix.RTLD_Flags{.NOW}
if global_symbols {
flags += {.GLOBAL}
} else {
flags += posix.RTLD_LOCAL
}
cpath := strings.clone_to_cstring(path, allocator)