summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-02 14:13:33 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-09 18:09:47 +0300
commit228d6132a78b787b7add1facebe3a20b0eb6ce20 (patch)
tree1dc9bef09545e2ea403167bcb48310f61dc7af10
parent66afd38f5e88de1df3fb84539a979f361489b05c (diff)
downloadhercules-228d6132a78b787b7add1facebe3a20b0eb6ce20.tar.gz
hercules-228d6132a78b787b7add1facebe3a20b0eb6ce20.tar.bz2
hercules-228d6132a78b787b7add1facebe3a20b0eb6ce20.tar.xz
hercules-228d6132a78b787b7add1facebe3a20b0eb6ce20.zip
Fix gcc lto.
-rwxr-xr-xconfigure4
-rw-r--r--configure.ac4
2 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index 45b75ad5e..5c6f1942c 100755
--- a/configure
+++ b/configure
@@ -5151,10 +5151,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 0a86ffb58..d4df6d068 100644
--- a/configure.ac
+++ b/configure.ac
@@ -725,10 +725,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(