summaryrefslogtreecommitdiff
path: root/configure.ac
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 /configure.ac
parente8c07e73a4a6e88eb94c4f62b562004c70922436 (diff)
downloadhercules-d17169c2a9e97a3ea87025bc591ccf5157241c60.tar.gz
hercules-d17169c2a9e97a3ea87025bc591ccf5157241c60.tar.bz2
hercules-d17169c2a9e97a3ea87025bc591ccf5157241c60.tar.xz
hercules-d17169c2a9e97a3ea87025bc591ccf5157241c60.zip
Fix gcc lto.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
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(