I am trying to cross-compile using the gcc -sysroot option. However, when I try to communicate with the script linker (e.g. libpthread.so or libc.so) I get
$CTC_PATH/bin/ld: skipping incompatible /lib/libc.so.6 when searching for /lib/libc.so.6 $CTC_PATH/bin/ld: cannot find /lib/libc.so.6
In the main scripts, the bootloader contains absolute paths, and now it is trying to link to my system libraries located on these paths. I worked on the problem by removing absolute paths.
Does anyone know of another fix for this issue that is not related to editing linker scripts.
Thanks.
source share