I would try the second solution (rpath), because it seems the easiest way to set up.What should I change? The autotools files or the Codeblocks-unix.cbp
If it does not work, try to set LD_LIBRARY_PATH with the environment variable plugin.This doesn't work, I've tried it. And I don't know why it doesn't work :(
-Wl,-rpath=/path/to/codeblocks-root/src/devel