On Sun, Apr 05, 2009 at 06:39:37PM -0500, Mike Gerdts wrote: > You may also consider -R../lib. This allows fairly arbitrary > placement of the executable and library (e.g. as in user images) > without having to resort to evil things like LD_LIBRARY_PATH.
That won't work; relative paths are relative to the process' cwd. What you'd want to use is $ORIGIN/../lib (where "$ORIGIN" is literal, and would need to be properly quoted in your Makefile or on the commandline. Danek