commit:     65bb9581646328cca88db9cc9e32ca5902886547
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 17 09:16:22 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Jun 17 09:16:22 2019 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=65bb9581

scripts/bootstrap-prefix: fix compilation of m4 on newer glibc/gcc

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 scripts/bootstrap-prefix.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index b737a16622..7a7d78ad0f 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -823,6 +823,12 @@ bootstrap_gnu() {
                touch -r configure{.orig,}
        fi
 
+       if [[ ${PN} == "m4" ]] ; then
+               # drop _GL_WARN_ON_USE which gets turned into an error with
+               # recent GCC
+               sed -i -e '/_GL_WARN_ON_USE (gets/d' lib/stdio.in.h lib/stdio.h
+       fi
+
        if [[ ${PN} == "grep" ]] ; then
                # Solaris and OSX don't like it when --disable-nls is set,
                # so just don't set it at all.

Reply via email to