From 3ffb0c4f25eff926989867b4a7f604f54d68281b Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Thu, 1 Aug 2019 14:45:23 +0200 Subject: [PATCH] Enable more threads for flto --- aclocal.m4 | 2 +- configure.ac | 2 +- 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])