Re: [PATCH 4/4] dlopen: on unspecified lib dir search exe dir

2016-09-01 Thread Corinna Vinschen
On Aug 31 20:07, Michael Haubenwallner wrote: > Applications installed to some prefix like /opt/application do expect > dlopen("libAPP.so") to load "/opt/application/bin/cygAPP.dll", which > is similar to "/opt/application/lib/libAPP.so" on Linux. > > See also https://cygwin.com/ml/cygwin-develope

Re: [PATCH 2/4] dlopen (pathfinder): try each basename per dir

2016-09-01 Thread Corinna Vinschen
On Aug 31 20:07, Michael Haubenwallner wrote: > Rather than searching all search dirs per one basename, > search for all basenames within per one search dir. > > pathfinder.h (check_path_access): Interchange dir- and basename-loops. > --- > winsup/cygwin/pathfinder.h | 12 ++-- > 1 file c

Re: [PATCH 1/4] dlopen: switch to new pathfinder class

2016-09-01 Thread Corinna Vinschen
On Sep 1 13:05, Michael Haubenwallner wrote: > On 08/31/2016 09:12 PM, Corinna Vinschen wrote: > > Hi Michael, > > > > On Aug 31 20:07, Michael Haubenwallner wrote: > >> Instead of find_exec, without changing behaviour use new pathfinder > >> class with new allocator_interface around tmp_pathbuf

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 > >

Re: [PATCH 1/4] dlopen: switch to new pathfinder class

2016-09-01 Thread Michael Haubenwallner
On 08/31/2016 09:12 PM, Corinna Vinschen wrote: > Hi Michael, > > On Aug 31 20:07, Michael Haubenwallner wrote: >> Instead of find_exec, without changing behaviour use new pathfinder >> class with new allocator_interface around tmp_pathbuf and new vstrlist >> class. >> * pathfinder.h (pathfinder):