Skip to content

Shane's Config

Shane Peelar edited this page Jul 20, 2020 · 5 revisions

I follow the posted recommended configuration in this repo with some extras for testing. I also have SSP and PIE disabled for the time being, but this is by means no requirement to run this config. Note: to disable PIE, simply setting USE=-pie isn't enough in your make.conf, you must create an entry in /etc/portage/profile/package.use.force as follows:

sys-devel/gcc -pie

See this thread for more information about PIE: https://github.com/InBetweenNames/gentooLTO/issues/261#issuecomment-480459711

Most Gentoo-ers have -march=native -O2 in their CFLAGS and CXXFLAGS. Using -march is a good idea as it allows GCC to tune it's code generation to your specific processor. I've enabled all of the GentooLTO default flags in mine, which can be found in make.conf.lto.

I'm also running -fno-plt with Gentoo Prelink. This will likely not be default, but will be a supported configuration. The reason it will likely not be default is that it throws away lazy binding, and some users may need lazy binding on their systems.

One last thing is that I have patched GCC sources to remove fortification on certain headers.

My Portage profile is default/linux/amd64/17.1/desktop/plasma.