Library location

I have a shared library called which has a routine cipAPI, and
another shared library that links to They both exist
under /ffs/lib. LD_LIBRARY_PATH is set to /ffs/lib.

The executable program Test calls dllOpen() to load the
library. When the Test program issues call to cipAPI, the cipAPI call
will only success if the Test program runs from /ffs/lib directory.
Otherwise, the cipAPI would fail.

Any idea what’s causing this?