Gentoo Archives: gentoo-commits

From: "Michael Haubenwallner (haubi)" <haubi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in profiles/prefix/linux: profile.bashrc
Date: Wed, 09 Jul 2014 12:03:57
Message-Id: 20140709120354.0EE812004F@flycatcher.gentoo.org
1 haubi 14/07/09 12:03:53
2
3 Modified: profile.bashrc
4 Log:
5 prefix/linux/profile.bashrc: Enable -fgnu89-inline compiler flag for glibc-2.5 and older, bug#473524.
6
7 Revision Changes Path
8 1.4 profiles/prefix/linux/profile.bashrc
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/profiles/prefix/linux/profile.bashrc?rev=1.4&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/profiles/prefix/linux/profile.bashrc?rev=1.4&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/profiles/prefix/linux/profile.bashrc?r1=1.3&r2=1.4
13
14 Index: profile.bashrc
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/profiles/prefix/linux/profile.bashrc,v
17 retrieving revision 1.3
18 retrieving revision 1.4
19 diff -u -r1.3 -r1.4
20 --- profile.bashrc 21 Dec 2011 04:13:08 -0000 1.3
21 +++ profile.bashrc 9 Jul 2014 12:03:53 -0000 1.4
22 @@ -14,4 +14,13 @@
23 fi
24 fi
25
26 +if [[ ${EBUILD_PHASE} == setup ]]; then
27 + VERS=$(/usr/bin/ldd --version | head -n1 | grep -o ") [0-9]\.[0-9]\+" | cut -d. -f2 )
28 + if [[ $VERS -lt 6 ]]; then # compare host glibc 2.x to 2.6
29 + ewarn "Your host glibc is too old; enabling -fgnu89-inline compiler flag. bug 473524"
30 + CFLAGS="${CFLAGS} -fgnu89-inline"
31 + CXXFLAGS="${CXXFLAGS} -fgnu89-inline"
32 + fi
33 +fi
34 +
35 # vim: set syn=sh expandtab ts=4: