Re: [PATCH 3/4] dlopen: on x/lib search x/bin if exe is in x/bin

2016-09-02 Thread Michael Haubenwallner
On 09/02/2016 11:03 AM, Corinna Vinschen wrote: > On Sep 2 10:46, Michael Haubenwallner wrote: >> On 09/01/2016 03:32 PM, Corinna Vinschen wrote: >>> You could just use the global variable program_invocation_name. If in >>> doubt, use the Windows path global_progname and convert it to full POSIX

Re: [PATCH 3/4] dlopen: on x/lib search x/bin if exe is in x/bin

2016-09-02 Thread Corinna Vinschen
On Sep 2 10:46, Michael Haubenwallner wrote: > Hi Corinna, > > On 09/01/2016 03:32 PM, Corinna Vinschen wrote: > > You could just use the global variable program_invocation_name. If in > > doubt, use the Windows path global_progname and convert it to full POSIX > > via cygwin_conv_path. > > Pat

Re: [PATCH 3/4] dlopen: on x/lib search x/bin if exe is in x/bin

2016-09-02 Thread Michael Haubenwallner
Hi Corinna, On 09/01/2016 03:32 PM, Corinna Vinschen wrote: > On Aug 31 20:07, Michael Haubenwallner wrote: >> citing https://cygwin.com/ml/cygwin-developers/2016-08/msg00020.html >>> Consider the file /usr/bin/cygz.dll: >>> - dlopen (libz.so)success >>> - dlopen (/usr/bin/libz.so) s

Re: [PATCH 3/4] dlopen: on x/lib search x/bin if exe is in x/bin

2016-09-01 Thread Corinna Vinschen
Hi Michael, On Aug 31 20:07, Michael Haubenwallner wrote: > citing https://cygwin.com/ml/cygwin-developers/2016-08/msg00020.html > > Consider the file /usr/bin/cygz.dll: > > - dlopen (libz.so)success > > - dlopen (/usr/bin/libz.so) success > > - dlopen (/usr/lib/libz.so) fails > >