View previous topic :: View next topic |
Author |
Message |
Festy n00b
Joined: 07 Jan 2003 Posts: 29 Location: Adelaide, South Australia
|
Posted: Sun Mar 09, 2003 10:14 am Post subject: What flags should I use for compatibility? |
|
|
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 |
|
|
Maz n00b
Joined: 18 Jul 2002 Posts: 43 Location: Montpeller, France
|
Posted: Sun Mar 09, 2003 3:12 pm Post subject: |
|
|
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 |
|
|
abhishek Retired Dev
Joined: 28 Jun 2002 Posts: 393 Location: Los Angeles, CA
|
Posted: Sun Mar 09, 2003 4:07 pm Post subject: |
|
|
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 |
|
|
abhishek Retired Dev
Joined: 28 Jun 2002 Posts: 393 Location: Los Angeles, CA
|
Posted: Sun Mar 09, 2003 4:08 pm Post subject: |
|
|
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 |
|
|
|