View previous topic :: View next topic |
Author |
Message |
KingYes Tux's lil' helper
Joined: 17 Jan 2008 Posts: 142 Location: Israel
|
Posted: Sat May 14, 2011 9:20 pm Post subject: What is the better Safe Cflage for Intel i5? |
|
|
Hey all,
What is the better Safe Cflage for my CPU Intel i5?
In Safe Cflags i see its need to be '-march=native', But in Safe_Cflags/Intel i see its need to be '-march=core2'.
And about 'MAKEOPTS'? i see '-j5', so its ok for my CPU?
So what i need to do?
Thanks a lots for your support. _________________ Yakir. |
|
Back to top |
|
|
Etal Veteran
Joined: 15 Jul 2005 Posts: 1931
|
Posted: Sat May 14, 2011 10:42 pm Post subject: |
|
|
"-march=navtive" means that gcc will automatically pick the right flags based on what your CPU supports, so it's a superset of "-march=core2" (If you run
"gcc -Q --help=target -march=native" - from the wiki - you'll see that -march=core2 is one of the selected flags.)
MAKEOPTS just affect how many jobs it uses to build the package. On my dual core/multithreaded i7, -j5 builds faster than with -j4. _________________ “And even in authoritarian countries, information networks are helping people discover new facts and making governments more accountable.”– Hillary Clinton, Jan. 21, 2010
Last edited by Etal on Sat May 14, 2011 10:46 pm; edited 1 time in total |
|
Back to top |
|
|
KingYes Tux's lil' helper
Joined: 17 Jan 2008 Posts: 142 Location: Israel
|
Posted: Sat May 14, 2011 10:45 pm Post subject: |
|
|
OK, Thanks you.
Now i have gentoo installed.. so how i can setup this option for all my packages? _________________ Yakir. |
|
Back to top |
|
|
Etal Veteran
Joined: 15 Jul 2005 Posts: 1931
|
Posted: Sat May 14, 2011 10:49 pm Post subject: |
|
|
You can change it in make.conf, and all new packages will be built with that flag.
If you really want to, you can rebuild all currently-installed packages with "emerge -ae world", but it's not really worth it. _________________ “And even in authoritarian countries, information networks are helping people discover new facts and making governments more accountable.”– Hillary Clinton, Jan. 21, 2010 |
|
Back to top |
|
|
KingYes Tux's lil' helper
Joined: 17 Jan 2008 Posts: 142 Location: Israel
|
Posted: Sat May 14, 2011 10:53 pm Post subject: |
|
|
Thanks you ! _________________ Yakir. |
|
Back to top |
|
|
|