View previous topic :: View next topic |
Author |
Message |
Maitreya Guru

Joined: 11 Jan 2006 Posts: 445
|
Posted: Fri Sep 28, 2018 2:13 pm Post subject: CPU_FLAGS_X86: compatibility |
|
|
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 |
|
 |
eccerr0r Watchman

Joined: 01 Jul 2004 Posts: 10016 Location: almost Mile High in the USA
|
Posted: Fri Sep 28, 2018 2:29 pm Post subject: |
|
|
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 |
|
 |
Maitreya Guru

Joined: 11 Jan 2006 Posts: 445
|
Posted: Fri Sep 28, 2018 2:38 pm Post subject: |
|
|
Ah thank you!
So for building for multiple processors I make CPU_FLAGS_X86 a superset and CFLAGS a subset |
|
Back to top |
|
 |
|