I have to compile a program on a current ubuntu (12.04). This program should then run on a cluster using CentOS with an older Kernel (2.6.18). I cannot compile on the cluste
-rpath sets the DT_RPATH tag but doesn't tell the linker to look there for libs, you want -L for that.
-rpath
-L