On Oct 24 23:17, Denis Excoffier wrote: > 2014-10-24 22:16, Christian Franke wrote: > > > > Corinna Vinschen wrote: > >> > >> Sigh. > >> > >> I don't like the idea either that this simple change breaks existing > >> scenarios. I'm inclined to revert this change. > >> > >> Christian, would you mind terribly to re-add the tweak to postfix > >> to set $PATH? > >> > > > > No problem. > > > > Another possible solution: > > Check for e.g. CYGWIN_DLLPATH environment variable before calling > > SetDllDirectory(). > > > > If unset or empty, call SetDllDirectory("X:\path_to_cygwin\bin"); > > else if set to ".", do nothing. > > else call SetDllDirectory(CYGWIN_DLLPATH); > > > > The above 'make check' should then work again as 'CYGWIN_DLLPATH=. make > > check'. > I can buy this. Setting 'export CYGWIN_DLLPATH := .' at the beginning of the > Makefile will > do the job. > > > > > Possible enhancement: If AddDllDirectory() is available (>= Win8), accept a > > real search path in CYGWIN_DLLPATH. > Also perhaps you can use yet another subitem in the CYGWIN environment > variable?
If AddDllDirectory works without much hassle, which I have to test first, why introduce CYGWIN_DLLPATH or another CYGWIN item? LD_LIBRARY_PATH would be the one we want then, wouldn't it? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat
pgpsfLjUtUkmR.pgp
Description: PGP signature