Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CPU_FLAGS_X86: 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
Maitreya
Guru
Guru


Joined: 11 Jan 2006
Posts: 445

PostPosted: Fri Sep 28, 2018 2:13 pm    Post subject: CPU_FLAGS_X86: compatibility Reply with quote

Tried looking trough old post and some documentation.

But it isn't clear to me what it's exact outcome is.

Are (use)flags in here supported by the binary running somewhere if the cpu supports the featureset?

or

Does it influence the running capability of the binary as cflags would?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 10016
Location: almost Mile High in the USA

PostPosted: Fri Sep 28, 2018 2:29 pm    Post subject: Reply with quote

CPU_FLAGS_X86 end up becoming USE flags, which trigger individual ebuild packages to add whatever is needed.
If the particular package does not check USE flags for CPU optimizations, then it will thus ignore CPU_FLAGS_X86.

This is a bit different than CFLAGS where packages are forced to use them if they are not overridden.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Maitreya
Guru
Guru


Joined: 11 Jan 2006
Posts: 445

PostPosted: Fri Sep 28, 2018 2:38 pm    Post subject: Reply with quote

Ah thank you!

So for building for multiple processors I make CPU_FLAGS_X86 a superset and CFLAGS a subset
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