|
From: | Dan McMahill |
Subject: | libtool wrapper env variable |
Date: | Wed, 13 Aug 2008 17:06:31 -0400 |
User-agent: | Thunderbird 2.0.0.16 (Windows/20080708) |
Hello,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 ./myprogUnfortunately, myprog 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?
I guess I could add my own wrapper that calls the libtool wrapper and add the variable there but that seems like a hack. I could also modify myprog to strip a trailing /.libs/ in the directory part of argv[0].
Thoughts? Thanks -Dan
[Prev in Thread] | Current Thread | [Next in Thread] |