LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 06: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, 10:48 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Open Source Consulting | Domain Registration