summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-02 14:13:33 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-11 20:29:22 +0300
commitd17169c2a9e97a3ea87025bc591ccf5157241c60 (patch)
treedadd3e04285a871582c286bc80f8bd5dafa7d46e
parente8c07e73a4a6e88eb94c4f62b562004c70922436 (diff)
downloadhercules-d17169c2a9e97a3ea87025bc591ccf5157241c60.tar.gz
hercules-d17169c2a9e97a3ea87025bc591ccf5157241c60.tar.bz2
hercules-d17169c2a9e97a3ea87025bc591ccf5157241c60.tar.xz
hercules-d17169c2a9e97a3ea87025bc591ccf5157241c60.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 90bcd409b..e2b80d978 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 e88834722..4b5830952 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(