Enable more threads for flto

This commit is contained in:
Ondrej Zajicek 2019-08-01 14:45:23 +02:00
parent de41d24a3d
commit 3ffb0c4f25
2 changed files with 2 additions and 2 deletions

2
aclocal.m4 vendored
View file

@ -155,7 +155,7 @@ AC_DEFUN([BIRD_CHECK_LTO],
bird_tmp_cflags="$CFLAGS" bird_tmp_cflags="$CFLAGS"
bird_tmp_ldflags="$LDFLAGS" bird_tmp_ldflags="$LDFLAGS"
CFLAGS="-flto" CFLAGS="-flto"
LDFLAGS="-flto" LDFLAGS="-flto=4"
AC_CACHE_CHECK( AC_CACHE_CHECK(
[whether link time optimizer is available], [whether link time optimizer is available],

View file

@ -156,7 +156,7 @@ fi
if test "$bird_cv_c_lto" = yes; then if test "$bird_cv_c_lto" = yes; then
CFLAGS="$CFLAGS -flto" CFLAGS="$CFLAGS -flto"
LDFLAGS="$LDFLAGS -flto" LDFLAGS="$LDFLAGS -flto=4"
fi fi
AC_MSG_CHECKING([CFLAGS]) AC_MSG_CHECKING([CFLAGS])