From dd6b379c74c801a24390585dc2e5069067ceaef4 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 14 Sep 2021 09:23:49 +0200 Subject: [PATCH] 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 --- internal/gl/gl_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/gl/gl_unix.go b/internal/gl/gl_unix.go index fc8c8013..f223ced5 100644 --- a/internal/gl/gl_unix.go +++ b/internal/gl/gl_unix.go @@ -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 {