Skip to content

Commit

Permalink
fix not using RTLD_LOCAL on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
laytan committed Feb 6, 2025
1 parent b86d2c3 commit 80d0977
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/dynlib/lib_unix.odin
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 80d0977

Please sign in to comment.