aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJack Howarth <howarth@bromo.med.uc.edu>2010-09-03 15:49:02 -0400
committerDiego Novillo <dnovillo@gcc.gnu.org>2010-09-03 15:49:02 -0400
commitbb79486c5531faaa25c959607a56236c62c0d559 (patch)
tree12613bd0a74ebab231fdcc3df3d06933df60630e /configure
parent65a9ca823e1aa1996badc22db84b8641d1487e61 (diff)
downloadgcc-bb79486c5531faaa25c959607a56236c62c0d559.zip
gcc-bb79486c5531faaa25c959607a56236c62c0d559.tar.gz
gcc-bb79486c5531faaa25c959607a56236c62c0d559.tar.bz2
configure.ac: Enable LTO by default on Darwin.
2010-09-03 Jack Howarth <howarth@bromo.med.uc.edu> * configure.ac: Enable LTO by default on Darwin. * configure: Regenerate. From-SVN: r163839
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 5 insertions, 3 deletions
diff --git a/configure b/configure
index fc759d7..631ae65 100755
--- a/configure
+++ b/configure
@@ -6670,8 +6670,11 @@ to specify its location." "$LINENO" 5
fi
else
if test x"$default_enable_lto" = x"yes" ; then
- # On non-ELF platforms, LTO must be explicitly enabled.
- enable_lto=no
+ case $target in
+ *-apple-darwin*) ;;
+ # On other non-ELF platforms, LTO must be explicitly enabled.
+ *) enable_lto=no ;;
+ esac
else
# Apart from ELF platforms, only Windows supports LTO so far. It
# would also be nice to check the binutils support, but we don't
@@ -6680,7 +6683,6 @@ else
# -flto it won't be needed until after installation anyway.
case $target in
*-cygwin*|*-mingw*) ;;
- *-apple-darwin*) ;;
*) if test x"$enable_lto" = x"yes"; then
as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
fi