sys-libs/glibc: 2.19 recognize gcc-10 as a sane compiler.

Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
This commit is contained in:
Benda Xu
2020-11-22 11:27:20 +08:00
parent 5b051eb4f3
commit 91d79eef68
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
Identify gcc-10+ as a good compiler.
Index: work/glibc-2.19/configure
===================================================================
--- glibc-2.19/configure
+++ glibc-2.19/configure
@@ -4710,7 +4710,7 @@ $as_echo_n "checking version of $CC... "
ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
case $ac_prog_version in
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
- 4.[4-9].* | 4.[1-9][0-9].* | [5-9].* )
+ 4.[4-9].* | 4.[1-9][0-9].* | [5-9].* | [1-9][0-9].* )
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;

View File

@@ -717,6 +717,7 @@ src_prepare() {
eapply "${FILESDIR}"/2.19/glibc-2.19-kernel-2.6.16-compat.patch
eapply "${FILESDIR}"/2.19/glibc-2.19-kernel-2.6.16-hide-pipe2.patch
eapply "${FILESDIR}"/2.19/glibc-2.19-gcc-10.patch
cd "${WORKDIR}"
find . -name configure -exec touch {} +