[PATCH 0/4] dlopen: improving the search algorithm
Wed Aug 31 18:07:00 GMT 2016
based on the discussion on -developers list , here's a reworked
set of patches for dlopen, split along these features and fixes.
*) Switch to pathfinder class for path search iteration, without any
deliberate change in behaviour, but with the pathfinder::criterion
interface to allow for more generic use eventually.
*) Fix search order to search all basenames per one directory
rather than searching all directories per one basename.
*) For dlopen ("/path/lib/libz.so"), search "/path/bin/" first when
the executable calling is located in "/path/bin/". This is for .
*) Consequently, dlopen ("libAPP.so") without an explicit path
should search the executable's directory first, like the Windows
loader does for linked dlls.
Topics dropped for now:
*) Extra GetModuleHandleEx is not that necessary to me, as it
turns out that LoadLibrary detects a dll as already loaded even
if the underlying dll file has been replaced (renamed actually).
*) Add PATH environment variable to list of searchdirs should not
be necessary to me when the executable dir is added.
More information about the Cygwin-patches