All,
Just a follow-up in case anyone is following this thread. After way too much time with this, I finally discovered why our application wasn't using LD_LIBRARY_PATH.
My problem stemmed from the fact that the app was installed on Linux systems as a set user-id root executable as the default. It was done that way in order to allow access to privileged I/O ports and memory mapping. A security feature of Linux is that set user-id root executables require system level shared library configuration. So any LD_LIBRARY_PATH settings are ignored.
You can change the modes with
Code:
chmod u-s /path/to/the/app
But this might be a problem if you still need the app to be setuid.
I also discovered a Linux utility called 'patchelf' which will edit an elf binary and internally modify the rpath which negates the need for LD_LIBRARY_PATH. patchelf might already be installed on your system, if not you can download and install it. You can use it thusly
Code:
patchelf --set-rpath /path/to/lib /path/to/the/app
Hopefully this might be of use to someone.
-J