diff options
author | Michael Haubenwallner <haubi@gentoo.org> | 2014-07-09 12:03:53 +0000 |
---|---|---|
committer | Michael Haubenwallner <haubi@gentoo.org> | 2014-07-09 12:03:53 +0000 |
commit | 5091fb56dc1cab4b3d2fcf3c131c4d641feb2195 (patch) | |
tree | bc45ebf1c69d0204512c5fd01afa9663a53c316d /profiles/prefix | |
parent | Version bump. (diff) | |
download | gentoo-2-5091fb56dc1cab4b3d2fcf3c131c4d641feb2195.tar.gz gentoo-2-5091fb56dc1cab4b3d2fcf3c131c4d641feb2195.tar.bz2 gentoo-2-5091fb56dc1cab4b3d2fcf3c131c4d641feb2195.zip |
prefix/linux/profile.bashrc: Enable -fgnu89-inline compiler flag for glibc-2.5 and older, bug#473524.
Diffstat (limited to 'profiles/prefix')
-rw-r--r-- | profiles/prefix/ChangeLog | 5 | ||||
-rw-r--r-- | profiles/prefix/linux/profile.bashrc | 9 |
2 files changed, 13 insertions, 1 deletions
diff --git a/profiles/prefix/ChangeLog b/profiles/prefix/ChangeLog index 701c9749e8d0..a7004c993f8d 100644 --- a/profiles/prefix/ChangeLog +++ b/profiles/prefix/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for profiles/prefix # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/ChangeLog,v 1.424 2014/07/06 16:54:16 grobian Exp $ +# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/ChangeLog,v 1.425 2014/07/09 12:03:53 haubi Exp $ + + 09 Jul 2014; Michael Haubenwallner <haubi@gentoo.org> linux/profile.bashrc: + Enable -fgnu89-inline compiler flag for glibc-2.5 and older, bug#473524. 06 Jul 2014; Fabian Groffen <grobian@gentoo.org> mint/make.defaults: Drop openmp from USE-default, bug #515616 diff --git a/profiles/prefix/linux/profile.bashrc b/profiles/prefix/linux/profile.bashrc index 79aa79710fa6..de443f63e9a8 100644 --- a/profiles/prefix/linux/profile.bashrc +++ b/profiles/prefix/linux/profile.bashrc @@ -14,4 +14,13 @@ if [[ ${CATEGORY}/${PN} == sys-devel/gcc && ${EBUILD_PHASE} == unpack ]]; then fi fi +if [[ ${EBUILD_PHASE} == setup ]]; then + VERS=$(/usr/bin/ldd --version | head -n1 | grep -o ") [0-9]\.[0-9]\+" | cut -d. -f2 ) + if [[ $VERS -lt 6 ]]; then # compare host glibc 2.x to 2.6 + ewarn "Your host glibc is too old; enabling -fgnu89-inline compiler flag. bug 473524" + CFLAGS="${CFLAGS} -fgnu89-inline" + CXXFLAGS="${CXXFLAGS} -fgnu89-inline" + fi +fi + # vim: set syn=sh expandtab ts=4: |