gcc - Getting CMake to understand absolute symbolic links when cross-compiling for Linux -


when cross compiling cmake, use toolchain file sets linker in local copy of root filesystem of embedded (linux) target.

things come unstuck few fundamental libraries libm or librt symbolic link absolute location cannot resolved.

for example, on target rootfs, librt symbolic link @ /usr/lib/arm-linux-gnueabihf/librt.so points /lib/arm-linux-gnueabihf/librt.so.6

i thought setting option cmake_sysroot root of root filesystem enough let cmake and/or gcc work out link, doesn't work.

for i'm manually adjusting links relative , links ok. assume there must i'm missing cross-compiling cmake though?

what paradime ensuring cross-compilation , linking against libraries in root filesystem?

the root filesystem generated debootstrap tool. complications have arisen requiring build project against both wheezy , jessie root filesystem targets.


Comments