mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-11-27 06:09:57 +08:00
LTO: consistently accept -fwhopr* and -flto* for GCC.
* libltdl/config/ltmain.m4sh (func_mode_link): Accept -fwhopr*. * libltdl/m4/libtool.m4 (_LT_SYS_HIDDEN_LIBDEPS): Also match -flto*. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
This commit is contained in:
parent
327f014068
commit
d4bf222845
@ -1,3 +1,10 @@
|
||||
2010-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
LTO: consistently accept -fwhopr* and -flto* for GCC.
|
||||
* libltdl/config/ltmain.m4sh (func_mode_link): Accept -fwhopr*.
|
||||
* libltdl/m4/libtool.m4 (_LT_SYS_HIDDEN_LIBDEPS): Also match
|
||||
-flto*.
|
||||
|
||||
2010-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
tests: avoid spurious test failure due to library mode on HP-UX.
|
||||
|
@ -5014,10 +5014,10 @@ func_mode_link ()
|
||||
# @file GCC response files
|
||||
# -tp=* Portland pgcc target processor selection
|
||||
# --sysroot=* for sysroot support
|
||||
# -O*, -flto*, -fwhopr, -fuse-linker-plugin GCC link-time optimization
|
||||
# -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
|
||||
-64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
|
||||
-t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
|
||||
-O*|-flto*|-fwhopr|-fuse-linker-plugin)
|
||||
-O*|-flto*|-fwhopr*|-fuse-linker-plugin)
|
||||
func_quote_for_eval "$arg"
|
||||
arg="$func_quote_for_eval_result"
|
||||
func_append compile_command " $arg"
|
||||
|
2
libltdl/m4/libtool.m4
vendored
2
libltdl/m4/libtool.m4
vendored
@ -6836,7 +6836,7 @@ _LT_EOF
|
||||
|
||||
_lt_libdeps_save_CFLAGS=$CFLAGS
|
||||
case "$CC $CFLAGS " in #(
|
||||
*\ -flto\ *) CFLAGS="$CFLAGS -fno-lto" ;;
|
||||
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
|
||||
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
|
||||
esac
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user