Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What flags should I use for compatibility?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Festy
n00b
n00b


Joined: 07 Jan 2003
Posts: 29
Location: Adelaide, South Australia

PostPosted: Sun Mar 09, 2003 10:14 am    Post subject: What flags should I use for compatibility? Reply with quote

I have a network with 6 computers I want to run Gentoo on:

Pentium III 700
Pentium III 667
Athlon XP 2100+
Athlon Tbird 1400
Duron 900
K6/2 500

What compiling flags would I have to use in the make.conf to make every package i compile on one system (which will then be put into a common package directory) work on every other system, so to allow for fast as possible installs for anything that has been compiled on another system?

Thanks :)

Burn.
_________________
sifnt v1.2.1
Back to top
View user's profile Send private message
Maz
n00b
n00b


Joined: 18 Jul 2002
Posts: 43
Location: Montpeller, France

PostPosted: Sun Mar 09, 2003 3:12 pm    Post subject: Reply with quote

You would have to set :
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=i586"

You can add about everything to CFLAGS not related to CPU type.
You could add "-pipe -O2 -fomit-frame-pointer" for example, but not "-msse".

Note that only the K6 is i586, all other are i686, and I think they all support sse, so maybe you want to split up the 4 big machines, and the slowest one.
_________________
Maz
Back to top
View user's profile Send private message
abhishek
Retired Dev
Retired Dev


Joined: 28 Jun 2002
Posts: 393
Location: Los Angeles, CA

PostPosted: Sun Mar 09, 2003 4:07 pm    Post subject: Reply with quote

Maz wrote:
You would have to set :
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=i586"

You can add about everything to CFLAGS not related to CPU type.
You could add "-pipe -O2 -fomit-frame-pointer" for example, but not "-msse".

Note that only the K6 is i586, all other are i686, and I think they all support sse, so maybe you want to split up the 4 big machines, and the slowest one.
I think SSE is the big addition in the XPs from the tbirds, so the tbird wouldn't have it.
Back to top
View user's profile Send private message
abhishek
Retired Dev
Retired Dev


Joined: 28 Jun 2002
Posts: 393
Location: Los Angeles, CA

PostPosted: Sun Mar 09, 2003 4:08 pm    Post subject: Reply with quote

On each computer you could also add -mcpu=<...>(athlon-xp for example)., to make the code optimized for that cpu, but still allowing it to run on others.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum