diff --git a/configure.ac b/configure.ac
index 5ec753598b3832acb2a5c8a80e2c63545374e8b6..e0b85bafb78e0756071d34a426f7cb2474c2c31e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -149,8 +149,6 @@ if test "$bird_cflags_default" = yes ; then
   BIRD_ADD_GCC_OPTION([bird_cv_c_option_fno_strict_aliasing], [-fno-strict-aliasing])
   BIRD_ADD_GCC_OPTION([bird_cv_c_option_fno_strict_overflow], [-fno-strict-overflow])
 fi
-AC_MSG_CHECKING([CFLAGS])
-AC_MSG_RESULT([$CFLAGS])
 
 if test "$enable_debug" = no; then
   BIRD_CHECK_LTO
@@ -161,6 +159,9 @@ if test "$bird_cv_c_lto" = yes; then
   LDFLAGS="$LDFLAGS -flto"
 fi
 
+AC_MSG_CHECKING([CFLAGS])
+AC_MSG_RESULT([$CFLAGS])
+
 AC_PROG_CPP
 AC_PROG_INSTALL
 AC_PROG_RANLIB