If you use pump/distcc and therefore cannot use “-mtune=native” in make.conf; or you just want to know what those values mean, read on for the one-liners to run and find out!

Both of these will give you useful information:

Console - user@hostname ~ $

1
gcc -### -march=native -E /usr/include/stdlib.h 2>&1 | grep "/usr/libexec/gcc/.*cc1"

Console - user@hostname ~ $

1
gcc -march=native -E -v - &1 | sed -n 's/.* -v - //p'

The information output to your screen can be used to set CFLAGS that will work with distcc using crossdev in /etc/portage/make.conf (nee /etc/make.conf)

Thanks to +iamben of #gentoo on irc://irc.freenode.net

Comments