gcc/mpfr: Disable LTO unconditionally.

This is kind of a hack, but really it's the configure script that
is broken, as it hard-checks for "gcc-ar" which of course does not
work with Clang builds. We want LTO to be enabled in GCC, and
GCC unconditionally passes all arguments it gets to sub-configures,
so all we can do is stop the flag from having any effect.

Fixes #14733.
This commit is contained in:
Augustin Cavalier 2019-02-20 19:31:21 -05:00
parent abcbee7bba
commit fd2fd983c5

19
gcc/mpfr/configure vendored
View File

@ -13399,16 +13399,17 @@ fi
# Check whether --enable-lto was given.
enable_lto=no
if test "${enable_lto+set}" = set; then :
enableval=$enable_lto; case $enableval in
yes) if test "$enable_shared" != "no"; then
as_fn_error $? "--enable-lto can only work in static mode (--disable-shared)" "$LINENO" 5
fi
enable_lto=yes
;;
no) ;;
*) as_fn_error $? "bad value for --enable-lto: yes or no" "$LINENO" 5 ;;
esac
# enableval=$enable_lto; case $enableval in
# yes) if test "$enable_shared" != "no"; then
# as_fn_error $? "--enable-lto can only work in static mode (--disable-shared)" "$LINENO" 5
# fi
# enable_lto=yes
# ;;
# no) ;;
# *) as_fn_error $? "bad value for --enable-lto: yes or no" "$LINENO" 5 ;;
# esac
fi