You make generour use of rpath. This is wrong!!!!
You should not assume that libraries are always located
in the same place for all machines, or that they do not
move. rpath is not a viable option in most cases it is
provided typicaly for more system level things that should
not change at all. Your use of rpath is bad. Linking of
shared libraries should occur with a simple
'-shared -Lpath -llibname' options on the command line.