Installing Gentoo on an X240
These notes refer to the installation of Gentoo on an X240 system. The notes are NOT step-by-step instructions, but they are supposed to provide the necessary information to simplify the installation (i.e. configuration files, etc).
/etc/portage/make.conf
The "core-avx" CFLAGS option optimises for the new Haswell instruction set:
CHOST="x86_64-pc-linux-gnu" CFLAGS="-march=core-avx2 -O2 -pipe" CXXFLAGS="${CFLAGS}"
source: Safe CFLAGS Template:X240