diff options
author | Travis Tilley <lv@gentoo.org> | 2004-09-13 23:04:59 +0000 |
---|---|---|
committer | Travis Tilley <lv@gentoo.org> | 2004-09-13 23:04:59 +0000 |
commit | b2cb954f0297bde917cf79a849da29e62373644f (patch) | |
tree | 02c4f9b8eec7bc9c5f5a0f8e2f74a0414b5ba545 /profiles | |
parent | security version bump. Przemyslaw Frasunek has reported some vulnerabilities ... (diff) | |
download | gentoo-2-b2cb954f0297bde917cf79a849da29e62373644f.tar.gz gentoo-2-b2cb954f0297bde917cf79a849da29e62373644f.tar.bz2 gentoo-2-b2cb954f0297bde917cf79a849da29e62373644f.zip |
USE_SPECS support
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/default-linux/amd64/profile.bashrc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/profiles/default-linux/amd64/profile.bashrc b/profiles/default-linux/amd64/profile.bashrc index 2f76cea90a54..47cf083eeb6c 100644 --- a/profiles/default-linux/amd64/profile.bashrc +++ b/profiles/default-linux/amd64/profile.bashrc @@ -41,3 +41,13 @@ setup_multilib_variables() { [ "${CCHOST}" == "" -o "${CCHOST}" == "${CHOST}" -o "${CCHOST}" == "${CHOST32}" ] && setup_multilib_variables [ "${CONF_MULTILIBDIR}" == "lib" -a "${CONF_LIBDIR}" == "lib64" ] && SKIP_MULTILIB_HACK="YES" + +# spec switching support only available in gcc 3.4.2-r1 and later +if [ -n "${USE_SPECS}" ] ; then + GCC_VER="$(${CC:=gcc} --version | grep ^gcc | awk '{ print $3 }')" + SPECSLOC="/usr/lib/gcc-lib/${CHOST}/${GCC_VER}/" + if [ -f ${SPECSLOC}/${USE_SPECS}.specs ] ; then + export GCC_SPECS="${SPECSLOC}/${USE_SPECS}.specs" + fi +fi + |