|
From: | Charles Wilson |
Subject: | Re: [PATCH] cygwin/mingw: binary wrapper fails when invoked via $PATH |
Date: | Tue, 15 Jul 2003 02:23:59 -0400 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 |
Bob Friesenhahn wrote:
Charles, These changes to ltmain.in seem pretty complex. For Windows isn't it easier and more reliable to use the GetModuleFileName() function? This allows using a single line of code: GetModuleFileName(0,path,PATHLENGTH); to obtain the full path to the binary wrapper.
Yes, that will work but...Are mingw/cygwin going to be the only platforms that ever use a binary wrapper? I know OUR reasons for using it are specific to the cygwin platform, but who knows whether other platforms may have some other reason to use a binary wrapper? (sure, nobody else does NOW, but...)
In any case, I was trying to stick with portable code (".exe" issue notwithstanding), instead of restricting the binary wrappers to windows only, even though currently they ARE only used on windows.
And besides, $PATH walking is not really that complex. Every shell does it -- and every kernel (execlp).
But that's just my opinion -- I'll go with whatever works. -- Chuck
[Prev in Thread] | Current Thread | [Next in Thread] |