LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 04-08-2009, 07:19 AM   #1
Ravi_
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/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?
 
Old 04-08-2009, 11:48 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

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


Reply


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 02:38 PM
Setting font in one console doesnt override the default setting Lakki Linux - Enterprise 0 09-01-2008 09:19 AM
search path ($PATH) weird issue bricedebrignaisplage Linux - General 3 04-25-2007 05:41 AM
search default: search post title only slackie1000 LQ Suggestions & Feedback 4 03-10-2005 08:50 AM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 07:10 PM


All times are GMT -5. The time now is 09:02 PM.

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