fix not using RTLD_LOCAL on darwin
This commit is contained in:
1 parent
b86d2c30b6
commit
80d09774b4
1 file changed
+2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user