diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-05-02 14:13:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-06-25 01:03:01 +0300 |
commit | 7a9ddff6cec1cc50c876726044f58d8595503637 (patch) | |
tree | 29468fd9e9229e1fa0990c0c3f260505b6818927 | |
parent | 57217ce913a55e63781719043cd89b85ec78490e (diff) | |
download | hercules-7a9ddff6cec1cc50c876726044f58d8595503637.tar.gz hercules-7a9ddff6cec1cc50c876726044f58d8595503637.tar.bz2 hercules-7a9ddff6cec1cc50c876726044f58d8595503637.tar.xz hercules-7a9ddff6cec1cc50c876726044f58d8595503637.zip |
Fix gcc lto.
-rwxr-xr-x | configure | 6 | ||||
-rw-r--r-- | configure.ac | 4 |
2 files changed, 5 insertions, 5 deletions
@@ -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( |