delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/04/23/15:01:49

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4F95A702.5070709@etr-usa.com>
Date: Mon, 23 Apr 2012 13:01:22 -0600
From: Warren Young <warren AT etr-usa DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
To: Cygwin-L <cygwin AT cygwin DOT com>
Subject: Re: Why /usr/bin/*.dll must be executable?
References: <4F915E65 DOT 8070608 AT gmail DOT com> <CAKw7uVjf6kt2O=u4EB4xDGgF5wCvqRmtO6v_bc51R7Qj2RFZLw AT mail DOT gmail DOT com>
In-Reply-To: <CAKw7uVjf6kt2O=u4EB4xDGgF5wCvqRmtO6v_bc51R7Qj2RFZLw@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 4/20/2012 7:07 AM, Václav Zeman wrote:
> This is a Windows thing.

Another aspect of the Windows Thing which I have not seen discussed yet 
is the DLL load path: http://goo.gl/VA8yC

Since Windows looks for DLLs first in the *.exe directory, this is the 
most reliable place to put them.

Options 2-5 in the list at the page linked above don't really apply 
here.  Cygwin purposely keeps itself nice and segregated from the rest 
of the system, so installing DLLs under c:\Windows isn't an option, and 
CWD is simply useless for our purpose here.

The only thing stopping us from using the final option in the article 
(i.e. putting cyg*.dll somewhere else in the PATH) is that it would put 
the DLLs off in the most fragile location allowed under the rules and it 
wouldn't solve the OP's problem anyway.  The DLLs would still appear in 
file name completion lists, since that also searches 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019