mirror of
https://review.haiku-os.org/buildtools
synced 2025-01-18 12:28:37 +01:00
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:
parent
abcbee7bba
commit
fd2fd983c5
19
gcc/mpfr/configure
vendored
19
gcc/mpfr/configure
vendored
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user