X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Eric Lilja <mindcooler@gmail.com>
Subject:  Re: Make program find its dll:s
Date:  Tue, 18 Nov 2008 12:31:58 +0100
Lines: 26
Message-ID: <gfu93e$560$1@ger.gmane.org>
References:  <gfu7qd$v3$1@ger.gmane.org> <20081118112012.GB26249@tomas>
Mime-Version:  1.0
Content-Type:  text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding:  8bit
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
In-Reply-To: <20081118112012.GB26249@tomas>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

tomas@tuxteam.de wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Tue, Nov 18, 2008 at 12:10:02PM +0100, Eric Lilja wrote:
>> [...] I'm now wondering if it's possible to tell a 
>> process launched from within a cygwin bash shell to "look in this directory 
>> as well for DLL files you might need [...]
> 
> The environment variable LD_LIBRARY_PATH is said to work in Cygwin as
> well. So setting it to a list of directories where to look for DLLs
> might do the trick. Dunno whether colon-separated (UNIXy) semi-colon
> separated (DOSy).

Hi Tomás and thanks for the quick reply. I tried setting LD_LIBRARY_PATH 
using $ LD_LIBRARY_PATH=/path/to/dll-files (and then checking with
$ echo LD_LIBRARY_PATH that it "stuck"), but the process still cannot 
find the DLL files. I am starting the process with strace so I am sure 
this is the problem, not something else. I guess I could temporarily 
modify the PATH but I'm interested in alternatives.

> 
> Regards
> - -- tomás

- Eric


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

