Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-08-2009, 06:19 AM   #1
LQ Newbie
Registered: Mar 2009
Posts: 9

Rep: Reputation: 0
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/ when searching for /lib/
/opt/STM/STLinux-2.3/devkit/sh4/lib/gcc/sh4-linux/4.2.4/../../../../sh4-linux/bin/ld: cannot find /lib/

The compiler is trying to use from the host /lib but the correct file is on the target filesystem eg. /home/user/work/prj/target/usr/lib/

How to make the compiler use this file instead of the system file?
Old 04-08-2009, 10:48 PM   #2
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,052

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
override default homepage with apache mattsoftnet Linux - Server 3 04-03-2009 01:38 PM
Setting font in one console doesnt override the default setting Lakki Linux - Enterprise 0 09-01-2008 08:19 AM
search path ($PATH) weird issue bricedebrignaisplage Linux - General 3 04-25-2007 04:41 AM
search default: search post title only slackie1000 LQ Suggestions & Feedback 4 03-10-2005 07:50 AM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 06:10 PM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration