This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Cygwin 64 bit?


Corinna Vinschen wrote:
> On Jul  8 20:06, Corinna Vinschen wrote:
>> Something else I'm wondering about is this.
>>
>> Right now the executable contains just the name of a DLL it is
>> linked against.  Does the PE/COFF format allow to store a relative
>> path in the executable?  Something like, say,
>> "..\\lib64\\libfoo.dll"?  If that is possible (I have really no
>> idea) wouldn't that allow to have the DLLs in /usr/lib64, given
>> that /usr/bin is in $PATH anyway?
>
> Just as an additonal data point, if you give a relative path to
> LoadLibrary, it appends the relative path to "every token in the DLL
> search list".  See the 7th paragraph in the "Remarks" section of
> http://msdn.microsoft.com/en-us/library/ms684175%28VS.85%29.aspx If
> that would also work for DLLs an executable is linked against...

Something worth testing.  When I read that paragraph I went searching
hoping I could find it documented but couldn't find any other relative
information about the LOAD TIME dll search path.

Earnie


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]