I'm looking at going with...

CFLAGS="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe -fno-pic 
-fno-PIC -fno-pie -fno-unwind-tables -fno-asynchronous-unwind-tables"
CXXFLAGS="${CFLAGS}"

...and with -pic in USE.  This is the mirror image of the defaults.  Any
obvious problems, aside from losing a bit of security?  In case you're
wondering about the "pic" USE flag...

[d531][waltdnes][~] grep ":pic " /usr/portage/profiles/use.local.desc 
app-arch/gzip:pic - disable optimized assembly code that is not PIC friendly
app-benchmarks/ramspeed:pic - Force shared libraries to be built as PIC (this 
is slower)
app-emulation/open-vm-tools:pic - Force shared libraries to be built as PIC
dev-util/electron:pic - Disable optimized assembly code that is not PIC friendly
games-emulation/yabause:pic - disable optimized assembly code that is not PIC 
friendly
games-fps/duke3d:pic - disable optimized assembly code that is not PIC friendly
gnome-base/orbit:pic - Force libname-server-2 to be built as PIC; needed on 
hardened systems
media-libs/libpostproc:pic - Force shared libraries to be built as PIC (this is 
slower).
media-libs/mesa:pic - disable optimized assembly code that is not PIC friendly
media-libs/x264:pic - disable optimized assembly code that is not PIC friendly
media-libs/x265:pic - Disable optimized assembly code that is not PIC friendly
media-libs/xvid:pic - disable optimized assembly code that is not PIC friendly
media-video/ffmpeg:pic - Force shared libraries to be built as PIC (this is 
slower)
media-video/libav:pic - Force shared libraries to be built as PIC (this is 
slower).
media-video/transcode:pic - disable optimized assembly code that is not PIC 
friendly
www-client/chromium:pic - Disable optimized assembly code that is not PIC 
friendly

-- 
Walter Dnes <waltd...@waltdnes.org>
I don't run "desktop environments"; I run useful applications

Reply via email to