summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-02 14:13:33 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-25 01:03:01 +0300
commit7a9ddff6cec1cc50c876726044f58d8595503637 (patch)
tree29468fd9e9229e1fa0990c0c3f260505b6818927
parent57217ce913a55e63781719043cd89b85ec78490e (diff)
downloadhercules-7a9ddff6cec1cc50c876726044f58d8595503637.tar.gz
hercules-7a9ddff6cec1cc50c876726044f58d8595503637.tar.bz2
hercules-7a9ddff6cec1cc50c876726044f58d8595503637.tar.xz
hercules-7a9ddff6cec1cc50c876726044f58d8595503637.zip
Fix gcc lto.
-rwxr-xr-xconfigure6
-rw-r--r--configure.ac4
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(