Farid Zaripov wrote:
-----Original Message-----
From: Andrew Black [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 13, 2007 9:44 PM
To: [email protected]
Subject: Re: [PATCH] RE: Cygwin cannot find -lstd12d

I have concerns about the change to makefile.rules. Including $(LIBDIR) in the PATH variable on all platforms creates the potential for mishaps on other platforms, though the probability of such mishaps is small.

Could you try setting the RPATH makefile variable to '-Wl,-rpath,' and see if that accomplishes the same result? The logic chain used to set this variable for the GCC compiler can be found around lines 135 through
161 of the gcc.config file.

  I have tried to use -rpath option, but it doesn't work.
The ld doesn't show any error's, but also has no effect.

My guess is that the Windows dynamic loader is too dumb
to support the equivalent of -rpath. The MSDN page on
the Dynamic-Link Library Search Order seems to confirm
this:
http://msdn2.microsoft.com/en-us/library/ms682586.aspx

I'm not sure if we should bother to look at Dynamic-Link
Library Redirection as a possible solution:
http://msdn2.microsoft.com/en-us/library/ms682600.aspx

Martin

Reply via email to