[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libtool wrapper vs $cwd

From: Dan McMahill
Subject: libtool wrapper vs $cwd
Date: Fri, 16 May 2008 17:34:36 -0400
User-agent: Thunderbird (Windows/20080421)


I helped out with a a build system and switching to libtool for a shared library and am now having the following problem. After building but before installing, the program used to be able to be tested by

cd foo-x.y/src

Unfortunately, it was keying off of the directory part of argv[0] to help find a file which must be read when the program runs but now argv[0] includes .libs/ due to libtool.

There is an environment variable which can be set that will tell myprog to look somewhere else for this file. Is there anyway to cause the libtool wrapper script, src/myprog, to set this variable automatically? If not, any suggestions on the best way to deal with programs which might use the directory of argv[0] when testing with the libtool generated wrapper script?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]