X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-4.2 required=5.0	tests=BAYES_00,RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4EE7B669.8030707@etr-usa.com>
Date: Tue, 13 Dec 2011 13:32:41 -0700
From: Warren Young <warren@etr-usa.com>
User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
To: Cygwin-L <cygwin@cygwin.com>
Subject: Re: cyg*.dll, linking
References: <CAGVbXL7YGp-WsEx4QooOCX_44GB2gx_C5hNBKkGbXXT_y3zTEg@mail.gmail.com>	<4EE7987B.8030208@cs.utoronto.ca>	<CAGVbXL6772ds2XcDyJuz9PB76h4Crv_S1RmgF3RATcqcvTm_zA@mail.gmail.com>	<CAEhDDbAdmFF4Ho522q2Y82wiRHzG9BW6uwWbQv7kKLaLf5oFSA@mail.gmail.com> <CAGVbXL51st2a++pHpkHRVYuJsJ1n7HyhQNSxta0rA260sAGi6A@mail.gmail.com>
In-Reply-To: <CAGVbXL51st2a++pHpkHRVYuJsJ1n7HyhQNSxta0rA260sAGi6A@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 12/13/2011 12:18 PM, Brian Craft wrote:
> On Tue, Dec 13, 2011 at 11:16 AM, Csaba Raduly  wrote:
>> On Tue, Dec 13, 2011 at 7:45 PM, Brian Craft  wrote:
>>
>>> And why don't I see cyg*.dll files, for example, in /usr/lib?
>>
>> They are all hiding under /usr/bin :)
>
> Ah! I see. So the install is working fine, I was just adding the wrong
> directory to PATH, having no idea that libraries would be installed
> under ${prefix}/bin. :)

...and that is on purpose, because of Windows' DLL search path rules:

	http://msdn.microsoft.com/en-us/library/7d83bc18.aspx

If autotools generated Makefiles that installed DLLs in /usr/lib, you'd 
have to add c:\cygwin\lib (or whatever) to the PATH, and then risk being 
sent to DLL Hell by having another DLLs with the same name elsewhere in 
the PATH.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

