From ed1a9514b67d2cab011b090ff6e113cfd2b54bb4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 2 May 2016 14:13:33 +0300 Subject: Fix gcc lto. --- configure | 6 +++--- configure.ac | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 99ba6ab70..7b7f4b68a 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac 2f61628. +# From configure.ac 562459d. # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69. # @@ -5056,10 +5056,10 @@ rm -f core conftest.err conftest.$ac_objext \ if test "$enable_lto" != "no" ; then OLD_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -flto" + CFLAGS="$CFLAGS -flto -ffat-lto-objects" OLD_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS -flto" + LDFLAGS="$LDFLAGS -flto -ffat-lto-objects" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -flto" >&5 $as_echo_n "checking whether $CC supports -flto... " >&6; } diff --git a/configure.ac b/configure.ac index d6f783505..9e0c90618 100644 --- a/configure.ac +++ b/configure.ac @@ -650,10 +650,10 @@ AC_LINK_IFELSE( if test "$enable_lto" != "no" ; then OLD_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -flto" + CFLAGS="$CFLAGS -flto -ffat-lto-objects" OLD_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS -flto" + LDFLAGS="$LDFLAGS -flto -ffat-lto-objects" AC_MSG_CHECKING([whether $CC supports -flto]) AC_RUN_IFELSE( -- cgit v1.2.3-70-g09d2