(loadlib): pass RTLD_LAZY to dlopen, without it linux is unhappy.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19764 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -106,7 +106,12 @@ init_ccapi(krb5_context context)
|
||||
}
|
||||
|
||||
#ifdef HAVE_DLOPEN
|
||||
cc_handle = dlopen(lib, 0);
|
||||
|
||||
#ifndef RTLD_LAZY
|
||||
#define RTLD_LAZY 0
|
||||
#endif
|
||||
|
||||
cc_handle = dlopen(lib, RTLD_LAZY);
|
||||
if (cc_handle == NULL) {
|
||||
HEIMDAL_MUTEX_unlock(&acc_mutex);
|
||||
krb5_set_error_string(context, "Failed to load %s", lib);
|
||||
|
Reference in New Issue
Block a user