GCC_VERSION best_version sys-devel gcc GCC_VERSION GCC_VERSION sys-dev

1
2
3
4
5
GCC_VERSION="$(best_version sys-devel/gcc)"
GCC_VERSION="${GCC_VERSION#sys-devel/gcc-}"
GCC_PROFILE="${CHOST}-${GCC_VERSION/_/-}"
eval $(gcc-config -E ${GCC_PROFILE})
export LD_LIBRARY_PATH=$(gcc-config -L ${GCC_PROFILE})