mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user