Files
doris/thirdparty/patches/ncurses-6.0.patch
2017-08-11 17:51:21 +08:00

13 lines
740 B
Diff

--- ncurses/base/MKlib_gen.sh.orig 2017-05-24 18:17:10.808025407 -0700
+++ ncurses/base/MKlib_gen.sh 2017-05-24 18:19:59.296032796 -0700
@@ -72,7 +72,8 @@
# appears in gcc 5.0 and (with modification) in 5.1, making it necessary to
# determine if we are using gcc, and if so, what version because the proposed
# solution uses a nonstandard option.
-PRG=`echo "$1" | $AWK '{ sub(/^[[:space:]]*/,""); sub(/[[:space:]].*$/, ""); print; }' || exit 0`
+#PRG=`echo "$1" | $AWK '{ sub(/^[[:space:]]*/,""); sub(/[[:space:]].*$/, ""); print; }' || exit 0`
+PRG=gcc
FSF=`"$PRG" --version 2>/dev/null || exit 0 | fgrep "Free Software Foundation" | head -n 1`
ALL=`"$PRG" -dumpversion 2>/dev/null || exit 0`
ONE=`echo "$ALL" | sed -e 's/\..*$//'`