瀏覽代碼

fix not using RTLD_LOCAL on darwin

Laytan Laats 8 月之前
父節點
當前提交
80d09774b4
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      core/dynlib/lib_unix.odin

+ 2 - 0
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)