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: Mon, 28 Jul 2014 13:48:23
Message-Id: 20140728134820.4885620051@flycatcher.gentoo.org
1 haubi 14/07/28 13:48:20
2
3 Modified: profile.bashrc
4 Log:
5 (<glibc-2.6) -fgnu89-inline is for C only; allow user to override.
6
7 Revision Changes Path
8 1.5 profiles/prefix/linux/profile.bashrc
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/profiles/prefix/linux/profile.bashrc?rev=1.5&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/profiles/prefix/linux/profile.bashrc?rev=1.5&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/profiles/prefix/linux/profile.bashrc?r1=1.4&r2=1.5
13
14 Index: profile.bashrc
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/profiles/prefix/linux/profile.bashrc,v
17 retrieving revision 1.4
18 retrieving revision 1.5
19 diff -u -r1.4 -r1.5
20 --- profile.bashrc 9 Jul 2014 12:03:53 -0000 1.4
21 +++ profile.bashrc 28 Jul 2014 13:48:20 -0000 1.5
22 @@ -16,10 +16,9 @@
23
24 if [[ ${EBUILD_PHASE} == setup ]]; then
25 VERS=$(/usr/bin/ldd --version | head -n1 | grep -o ") [0-9]\.[0-9]\+" | cut -d. -f2 )
26 - if [[ $VERS -lt 6 ]]; then # compare host glibc 2.x to 2.6
27 - ewarn "Your host glibc is too old; enabling -fgnu89-inline compiler flag. bug 473524"
28 - CFLAGS="${CFLAGS} -fgnu89-inline"
29 - CXXFLAGS="${CXXFLAGS} -fgnu89-inline"
30 + if [[ $VERS -lt 6 && "${CFLAGS} " != *'gnu89-inline '* ]]; then # compare host glibc 2.x to 2.6
31 + elog "Your host glibc is too old; enabling -fgnu89-inline compiler flag. bug 473524"
32 + CFLAGS="${CFLAGS} -fgnu89-inline" # for C only
33 fi
34 fi