Skip to content

Commit 0dec745

Browse files
committed
Remove global flag
1 parent 57038cc commit 0dec745

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func getDynamicLibrary() unsafe.Pointer {
2121
if libraryHandle != nil {
2222
C.dlclose(libraryHandle)
2323
}
24-
libraryHandle = C.dlopen(C.CString(os.Getenv("PKCS11_SUBMODULE")), C.RTLD_LAZY|C.RTLD_GLOBAL)
24+
libraryHandle = C.dlopen(C.CString(os.Getenv("PKCS11_SUBMODULE")), C.RTLD_LAZY)
2525
if libraryHandle == nil {
2626
return nil
2727
}
@@ -35,7 +35,7 @@ func getDynamicLibraryPure() uintptr {
3535
if libraryHandlePure != 0 {
3636
purego.Dlclose(libraryHandlePure)
3737
}
38-
libraryHandlePure, _ = purego.Dlopen(os.Getenv("PKCS11_SUBMODULE"), purego.RTLD_NOW|purego.RTLD_GLOBAL)
38+
libraryHandlePure, _ = purego.Dlopen(os.Getenv("PKCS11_SUBMODULE"), purego.RTLD_LAZY)
3939
if libraryHandlePure == 0 {
4040
return 0
4141
}

0 commit comments

Comments
 (0)