mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
fix not using RTLD_LOCAL on darwin
This commit is contained in:
@@ -13,6 +13,8 @@ _load_library :: proc(path: string, global_symbols: bool, allocator: runtime.All
|
|||||||
flags := posix.RTLD_Flags{.NOW}
|
flags := posix.RTLD_Flags{.NOW}
|
||||||
if global_symbols {
|
if global_symbols {
|
||||||
flags += {.GLOBAL}
|
flags += {.GLOBAL}
|
||||||
|
} else {
|
||||||
|
flags += posix.RTLD_LOCAL
|
||||||
}
|
}
|
||||||
|
|
||||||
cpath := strings.clone_to_cstring(path, allocator)
|
cpath := strings.clone_to_cstring(path, allocator)
|
||||||
|
|||||||
Reference in New Issue
Block a user