Have you told the loader where to find the shared library using LD_LIBRARY_PATH?
Alternatively you could use ld's rpath option, which specifies the runtime library search path of that particular program being compiled. In gcc, you can configure the rpath option by specifying it this way:
Code:
-Wl,-rpath,$(DEFAULT_LIB_INSTALL_PATH)