Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What is the better Safe Cflage for Intel i5?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
KingYes
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2008
Posts: 142
Location: Israel

PostPosted: Sat May 14, 2011 9:20 pm    Post subject: What is the better Safe Cflage for Intel i5? Reply with quote

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
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Sat May 14, 2011 10:42 pm    Post subject: Reply with quote

"-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
View user's profile Send private message
KingYes
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2008
Posts: 142
Location: Israel

PostPosted: Sat May 14, 2011 10:45 pm    Post subject: Reply with quote

OK, Thanks you.
Now i have gentoo installed.. so how i can setup this option for all my packages?
_________________
Yakir.
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Sat May 14, 2011 10:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
KingYes
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2008
Posts: 142
Location: Israel

PostPosted: Sat May 14, 2011 10:53 pm    Post subject: Reply with quote

Thanks you ! :)
_________________
Yakir.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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