LD_PRELOAD and LD_LIBRARY_PATH

Kacvinsky, Tom Tom.Kacvinsky@vector.com
Tue Apr 22 17:43:58 GMT 2025


Hi,

Is it possible on Cygwin to set LD_LIBRARY_PATH to contain multiple
directories (one for 32 bit and one for 64 bit) and then set LD_PRELOAD
to one DLL, so that when a 64 bit executable is run, the 64 bit flavor of
the LD_PRELOAD DLL is used, and when a 32 bit executable is run, the
32 bit flavor of the DLL is used.  This is something that you can do on
Linux, but from what I've read, this won't  work on Cygwin.

Any pointers as to what I can do to get this to work?

Thanks,

Tom


More information about the Cygwin-developers mailing list