summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-02 14:13:33 +0300
committerAndrei Karas <akaras@inbox.ru>2016-10-04 16:56:19 +0300
commitb7cec1446c7426ac449b69c1b1d168c31c52971a (patch)
treea61742532da35a67e0bc228cb7659dade4d35ac9
parent5cb184e7afe175584f32e96808277cb255f49dcf (diff)
downloadhercules-b7cec1446c7426ac449b69c1b1d168c31c52971a.tar.gz
hercules-b7cec1446c7426ac449b69c1b1d168c31c52971a.tar.bz2
hercules-b7cec1446c7426ac449b69c1b1d168c31c52971a.tar.xz
hercules-b7cec1446c7426ac449b69c1b1d168c31c52971a.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 9fe0c9d5b..e23895358 100755
--- a/configure
+++ b/configure
@@ -5153,10 +5153,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 6cad8146c..465f0d225 100644
--- a/configure.ac
+++ b/configure.ac
@@ -726,10 +726,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(