Set RTLD_GLOBAL when loading the odbc driver manager so that when it

loads  its own driver that driver can call back into the manager (as
the Oracle Beta driver does, for example).
This commit is contained in:
Bill Medland 2004-06-30 18:14:32 +00:00 committed by Alexandre Julliard
parent 665c4880f7
commit c01b206550

View file

@ -236,7 +236,7 @@ static BOOL ODBC_LoadDriverManager(void)
s = "libodbc.so";
strcpy(gProxyHandle.dmLibName, s);
gProxyHandle.dmHandle = wine_dlopen(gProxyHandle.dmLibName, RTLD_LAZY, error, sizeof(error));
gProxyHandle.dmHandle = wine_dlopen(gProxyHandle.dmLibName, RTLD_LAZY | RTLD_GLOBAL, error, sizeof(error));
if (gProxyHandle.dmHandle == NULL) /* fail to load unixODBC driver manager */
{