LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-20-2005, 11:37 AM   #1
ParticleHunter
Member
 
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129

Rep: Reputation: 15
modify target name for further compilations...


Hi,

what I refer to when talking about 'modify target name' is changing the target triplet, as I've seen it can be customized to a certain extent...

in my case, and by default, whatever package I'm going to compile, the config.guess scripts always tell me my target name is x86_64-unknown-linux-gnu

this annoys me a bit, as I've seen (to be precise) in the gcc compilation test results page, that there's several names for the x86-64 architecture, in the form of:

1. x86_64-unknown-linux-gnu
2. x86_64-suse-linux-gnu

and in the GNU C Library (glibc) manual I've seen the target can also be specified in the form of amd64-*-linux-gnu, where I suppose the asterisk is the field that can be customized (in example: amd64-custom-linux-gnu)

and my question is:

A. how can I modify the target name to accomodate for my architecture? I have an AMD Athlon64 3500+ cpu, hence the intention to have the target triplet to reflect my current architecture

B. is there the need to make any kind of adjustment to the compilation flags for... in example... the toolchain? or maybe, every package I need to compile (because maybe they're assuming a certain target name by default)?

I'd appreciate if anyone could help me with this, as you can see, it will surely be only a matter of 'customizing' my system, but what really annoys me is having 'unknown' instead of 'amd64', 'pc' or just the appropiate name it deserves and not the name it is getting currently...

Thanks in advance,

Julio
 
Old 02-26-2005, 12:23 PM   #2
ParticleHunter
Member
 
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129

Original Poster
Rep: Reputation: 15
not anyone can help me with this?

sorry, it's just... i didn't thought it was so difficult, but I would appreciate any help on this...


Julio
 
Old 03-12-2005, 11:36 AM   #3
taxtropel
Member
 
Registered: Mar 2005
Location: Cascade Mountains WA USA
Distribution: Linux From Scratch (LFS)
Posts: 149

Rep: Reputation: 16
x86_64

the target triplet x86_64-unknown-linux-gnu is just fine, don't change it.

compile flags for the x86_64 arch are:
-m64 for 64 bit processor
-m32 for 32 bit
-march=i686 for 32 bit x86
-march=x86-46 for AMD64 processors and the like
(note the dash above, rather than the underscore)

Oh, and BTW:
RTFM: man gcc
 
  


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
Many Compilations/Installations Fail Puta Madre Linux - Hardware 5 01-24-2005 03:52 PM
How to modify the library path variable?modify the Electronkz Linux - Newbie 1 04-13-2004 06:18 AM
optimizing compilations for my hardware. qanopus Linux - General 2 06-07-2003 04:31 PM
modify file access & modify timestamps i2itstud Linux - General 1 05-20-2003 03:34 AM
Frustrated compilations ottolinux Linux - Newbie 3 09-10-2001 07:17 PM

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

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