Skip to content

Commit

Permalink
Merge pull request #11383 from schwehr/11332-exclude-cplgetsymbol-wit…
Browse files Browse the repository at this point in the history
…hout-plugins

gdaldrivermanager.cpp: Do not look for plugins in GetRealDriver when GDAL_NO_AUTOLOAD set.
  • Loading branch information
rouault authored Nov 28, 2024
2 parents 02c5966 + ccfa017 commit 4aee058
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gcore/gdaldrivermanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1380,6 +1380,9 @@ GDALDriver *GDALPluginDriverProxy::GetRealDriver()
}
else
{
#ifdef GDAL_NO_AUTOLOAD
return nullptr;
#else
CPLString osFuncName;
if (STARTS_WITH(m_osPluginFileName.c_str(), "gdal_"))
{
Expand Down Expand Up @@ -1443,6 +1446,7 @@ GDALDriver *GDALPluginDriverProxy::GetRealDriver()
poDriverManager->m_oMapRealDrivers.erase(oIter);
}
}
#endif // GDAL_NO_AUTOLOAD
}

if (m_poRealDriver)
Expand Down

0 comments on commit 4aee058

Please sign in to comment.