LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-16-2005, 06:42 AM   #1
huweiming268
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Rep: Reputation: 0
How to specify target when compile binutils?


I want to compile binutils as a cross-compile.
but I don't know how to specify the "target".
and which "target" does binutils supported?

TKS
 
Old 07-16-2005, 10:23 AM   #2
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
I believe you would use the same ./configure options as when compiling a gcc cross-compiler. Take a look at "./configure --help" (maybe only one "-"; I forgot).
ta0kira
 
Old 07-16-2005, 12:59 PM   #3
biertrinken
LQ Newbie
 
Registered: Dec 2004
Location: bayern
Posts: 23

Rep: Reputation: 15
do you want to build cross-binutils (running on your host and linking or assembling for another target) or
do you want to cross-build binutils ( running on anather host )?

for cross-binutils try:
./configure --traget=i686-unknown-linux-gnu
(or powerpc-unknown-linux-gnu or ...)

for cross-building binutils try
export CC=name_crosscompiler_you_want_to use
before running configure

the crosstool.sh (http://kegel.com/crosstool/) script is very helpful for building cross toolschains ;-)
 
Old 07-17-2005, 11:42 PM   #4
huweiming268
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Original Poster
Rep: Reputation: 0
TKS, I understand..
 
  


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
Binutils won't compile because it can't find install.sh CPUFreak91 Linux From Scratch 2 09-01-2005 08:32 AM
HELP!!! Binutils won't compile correctly microsoft/linux Linux From Scratch 6 07-12-2005 12:11 PM
Compile binutils as lfs or root? El Basto Linux From Scratch 5 09-13-2004 01:37 PM
binutils - trying to compile peok Linux - Software 8 08-17-2004 12:09 PM
can't compile binutils (chapter 6) alaios Linux From Scratch 2 03-24-2004 04:00 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:13 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