Cygwin's sqlite3 modifies DLL search order

Jan Nijtmans
Fri Jul 17 07:33:52 GMT 2020

Op do 16 jul. 2020 om 18:48 schreef E. Madison Bray via Cygwin:
> Hi all,
> After some significant headache I discovered a problem introduced by
> the Cygwin patches for sqlite3.  The effect of this patch is that it
> modifies the DLL search order for all subsequent DLL loads (by
> filename instead of absolute path) in the application.

Thanks for bringing this to my attention. I'm open to suggestions how
to fix this. Yes, this code is already in for a long time. It even contains
an experimental part (the part within #ifdef _WIN32), when I was
trying to make a Win32 build of SQLite work in a Cygwin environment,
oviously a bad idea ......

Thinking about it, I have an idea how to fix it:  Currently extensions
(when using the win32 vfs) are loaded using the Win32 function
LoadLibrary().  Changing that to use dlopen() might already have
the desired effect, then this section can simply be removed

       Jan Nijtmans

More information about the Cygwin mailing list