summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2019-08-01 14:45:23 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2019-08-01 14:45:23 +0200
commit3ffb0c4f25eff926989867b4a7f604f54d68281b (patch)
treecf19e05cbb0f9d445194d827a055716129567914
parentde41d24a3d67c98d7330551bcf7549c007b89ae8 (diff)
Enable more threads for flto
-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])