LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-15-2011, 07:07 PM   #1
entz
Member
 
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453
Blog Entries: 3

Rep: Reputation: 40
gcc cross-compiler config question


HI folks,

what is the difference between:
a)--with-sysroot
b)--with-build-sysroot

?

NOTE: i'm reading this http://gcc.gnu.org/install/configure.html

unfortunately i'm too dumb to understand the difference apparently or the doc is too obscure ..

help please
 
Old 08-16-2011, 05:29 AM   #2
gary185
Member
 
Registered: Jul 2011
Posts: 113

Rep: Reputation: Disabled
that is confusing

they are just trying to make it so you can control who what and where with a very complex settup
--prefix=/opt/hide/the/compiler and still get the behavior you want
to tell you the truth the ins and outs of tool chains and trying to controll what symbols get into what compile are complex
and often gcc itself seems to have forgotten to read it's own confusing manual.
I know this isn't what you asked but i say you have to follow a build on this one someone has already tested out the actual results or the whole thing will get all fubar on you.

this is a great resource for cross compile toolchains
http://trac.cross-lfs.org/
 
Old 08-16-2011, 10:44 AM   #3
JonathanWilson
Member
 
Registered: Aug 2009
Location: Ilkeston, England
Distribution: ubuntu, xp, embeded
Posts: 79

Rep: Reputation: 1
As I read it, it means that if "with-sysroot" is used or has been set (someone correct me if I'm wrong but I believe that its possible to set some of these options as system variables and/or once an option has been set then the values are remembered) then using "-with-build-sysroot" will cause "with-sysroot" to be ignored in-favor of "-with-build-sysroot"
 
Old 08-16-2011, 11:12 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,401

Rep: Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611
Cross compile toolchains :

Crosstool-ng http://crosstool-ng.org/ : Recommended, and the only one
that is maintained. Last update = 31 July 2011.


Learning how to build tool chains : Build LFS, move on to CLFS,
like said in post # 2.

But the easy way is still 'crosstool-ng'. Can take weeks to build your own.

..
 
  


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
Installing the gcc cross compiler sujith4u87 Linux - Software 1 04-08-2010 09:58 AM
cross compiler -> ppc_405-gcc marri Programming 0 08-19-2005 09:28 AM
help: gcc cross-compiler for m68000 worthij Linux - Software 0 11-09-2004 02:32 PM
Building cross-compiler gcc for powerpc-linux ccool Linux - General 3 09-17-2004 07:33 AM
Building an ARM7 cross compiler from gcc Charlie_B Linux - Software 2 08-20-2003 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:28 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
Open Source Consulting | Domain Registration