diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2025-02-06 19:15:12 +0100 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2025-02-06 19:15:12 +0100 |
| commit | 80d09774b428f1201f550dee16d3104010260fc5 (patch) | |
| tree | 1afe9136d5cb00ff1d03fd3fe0678c377ff1386b /core/dynlib | |
| parent | b86d2c30b600023ae643c4dcc2dcca10b08c29dc (diff) | |
fix not using RTLD_LOCAL on darwin
Diffstat (limited to 'core/dynlib')
| -rw-r--r-- | core/dynlib/lib_unix.odin | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/dynlib/lib_unix.odin b/core/dynlib/lib_unix.odin index 50ab1acc8..1a6a737a4 100644 --- a/core/dynlib/lib_unix.odin +++ b/core/dynlib/lib_unix.odin @@ -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) |