internal/gl: explicitly state RTLD_LOCAL to dlopen

RTLD_LOCAL is the default on Linux, whereas RTLD_GLOBAL is default on
macOS. Be explicit.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-09-14 09:23:49 +02:00
parent 77eed223ac
commit dd6b379c74
+1 -1
View File
@@ -550,7 +550,7 @@ func dlsym(handle unsafe.Pointer, s string) unsafe.Pointer {
func dlopen(lib string) unsafe.Pointer {
clib := C.CString(lib)
defer C.free(unsafe.Pointer(clib))
return C.dlopen(clib, C.RTLD_NOW)
return C.dlopen(clib, C.RTLD_NOW|C.RTLD_LOCAL)
}
func (f *Functions) load(forceES bool) error {