I compile test.cpp with
gcc test.cpp -Wl,-rpath=$(pwd) 0x000000000000001d (RUNPATH) Library runpath: [/home/kevin/project/build]