How to override the default 'ld' search path
I am compiling GTK+-2.10.14 over directfb for STLinux platform. I get the following error:
/opt/STM/STLinux-2.3/devkit/sh4/lib/gcc/sh4-linux/4.2.4/../../../../sh4-linux/bin/ld: skipping incompatible /lib/ld-linux.so.2 when searching for /lib/ld-linux.so.2
/opt/STM/STLinux-2.3/devkit/sh4/lib/gcc/sh4-linux/4.2.4/../../../../sh4-linux/bin/ld: cannot find /lib/ld-linux.so.2
The compiler is trying to use ld-linux.so.2 from the host /lib but the correct file is on the target filesystem eg. /home/user/work/prj/target/usr/lib/ld-linux.so.2.
How to make the compiler use this file instead of the system file?
|