summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--aclocal.m42
-rw-r--r--configure.ac2
2 files changed, 2 insertions, 2 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 746d5df5..1613d680 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -155,7 +155,7 @@ AC_DEFUN([BIRD_CHECK_LTO],
bird_tmp_cflags="$CFLAGS"
bird_tmp_ldflags="$LDFLAGS"
CFLAGS="-flto"
- LDFLAGS="-flto"
+ LDFLAGS="-flto=4"
AC_CACHE_CHECK(
[whether link time optimizer is available],
diff --git a/configure.ac b/configure.ac
index e0b85baf..92941534 100644
--- a/configure.ac
+++ b/configure.ac
@@ -156,7 +156,7 @@ fi
if test "$bird_cv_c_lto" = yes; then
CFLAGS="$CFLAGS -flto"
- LDFLAGS="$LDFLAGS -flto"
+ LDFLAGS="$LDFLAGS -flto=4"
fi
AC_MSG_CHECKING([CFLAGS])