]> git.cworth.org Git - glaze/commit
Teach libglaze to look for wrapper library in current working directory
authorCarl Worth <cworth@cworth.org>
Mon, 23 Sep 2013 15:16:27 +0000 (08:16 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 23 Sep 2013 15:16:27 +0000 (08:16 -0700)
commit85faa290c2777d8e89af05648c229b0da395d4f7
tree90fa3ca18e6a507b4bf2f0bf3719736eca66d1b9
parentacd14c47b39d0fd15f0b7b212b70606e394b2d0b
Teach libglaze to look for wrapper library in current working directory

Previously, with libfoo.so in the current directory, the following
command would fail:

glaze --wrapper=libfoo.so <program> <args>

And to fix things, the user would have to explicitly name the current
working directory such as:

glaze --wrapper=./libfoo.so <program> <args>

That seems like a silly requirement, (and is an artefact if the logic
of the dynamic loader).

To allow the convenient usage (without "./") we teach libglaze to
explicitly look for the wrapper in the current working directory, and
if found, to resolve its absolute path.
libglaze.c