diff --git a/ChangeLog b/ChangeLog index cd162d751a3..11217fd1e0d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-03-22 Francois-Xavier Coudert + + * configure.ac: Enable LTO by default on darwin >= 9. + * configure: Regenerate. + 2017-03-20 Palmer Dabbelt * MAINTAINERS (CPU Port Maintainers): Add Kito Cheng, Palmer Dabbelt, diff --git a/configure b/configure index 3ff18d3105a..32a38633ad8 100755 --- a/configure +++ b/configure @@ -6045,7 +6045,7 @@ if test $target_elf = yes; then : else if test x"$default_enable_lto" = x"yes" ; then case $target in - *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;; + *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; # On other non-ELF platforms, LTO has yet to be validated. *) enable_lto=no ;; esac diff --git a/configure.ac b/configure.ac index 6192bb7b7db..12377499295 100644 --- a/configure.ac +++ b/configure.ac @@ -1727,7 +1727,7 @@ ACX_ELF_TARGET_IFELSE([# ELF platforms build the lto-plugin always. build_lto_plugin=yes ],[if test x"$default_enable_lto" = x"yes" ; then case $target in - *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;; + *-apple-darwin[[912]]* | *-cygwin* | *-mingw* | *djgpp*) ;; # On other non-ELF platforms, LTO has yet to be validated. *) enable_lto=no ;; esac