Hello.<br>I have a strange issue when cross compiling with CMake.<br>When i compile for host, in the resulting binary i have:<br><br>readelf -d ./test<br>...<br>0x00000001 (NEEDED)          Shared library: [libfoo.so]<br>0x0000000f (RPATH)              Library rpath: [$ORIGIN/../../lib/]<br>


...<br><br>When i use CMake toolchain file (cmake -DCMAKE_TOOLCHAIN_FILE=arm_<div>test.cmake .) i have:<br>readelf -d ./test<br>...<br>0x00000001 (NEEDED)          Shared library: [/home/mgh/proj/test/lib/libfoo.so]<br>
0x0000000f (RPATH)              Library rpath: [$ORIGIN/../../lib/]<br>
...<br><br>My toolchain file is very simple:<br><br>set( CMAKE_SYSTEM_NAME armLinux )<br><br>set( CMAKE_C_COMPILER arm-linux-gnueabi-gcc )<br>set( CMAKE_CXX_COMPILER arm-linux-gnueabi-g++ )<br>set( CMAKE_FIND_ROOT_PATH /home/mgh/toolchains/arm-linux-gnueabi/bin )<br>


<br>So my question is why path to libfoo.so has been changed in executable after<br>cross compiling? Thank you.</div>