LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to override the default 'ld' search path (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-override-the-default-ld-search-path-717671/)

Ravi_ 04-08-2009 06:19 AM

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?

i92guboj 04-08-2009 10:48 PM

Some configure scripts can be used to configure different paths than the default ones. Try to run ./configure --help and look around.

If not, you might want to try to set your own CFLAGS with -L/path/to/whatever


All times are GMT -5. The time now is 06:37 AM.