Tie specific binary to specific shared library (not with LD_LIBRARY_PATH)
Posted on 2008-11-01
I've got a locally compiled binary that needs a locally compiled shared library.
An older version of the same binary (and shared library) are installed from a Debian Etch package... and can't be touched.
I can make the new binary run with a hacky wrapper script like:
#Script hack to load new client on machine with older base
/usr/local/bin/bclient -h /var/run/bclient/ $@
But is there a better way? I tried adding -static to the gcc compile step, but this resulted in a pile of errors (on a complex bit of code I don't know)