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
./myprog
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?
Thanks
-Dan