]> arthur.barton.de Git - netdata.git/blobdiff - m4/ax_c_lto.m4
Merge pull request #1930 from ktsaou/master
[netdata.git] / m4 / ax_c_lto.m4
index 945527733ec3b7f4941abbfb75f9d79d63655e2e..7e6bc0119f8435af42a3da31a87f9f637ca4a21e 100644 (file)
@@ -13,8 +13,8 @@ AC_DEFUN([AC_C_LTO],
       ]])],
    [ac_cv_c_lto=yes],
    [ac_cv_c_lto=no],
-   [ac_cv_c_lto=no])])
-if test $ac_cv_c_lto = yes; then
+   [ac_cv_c_lto=${ac_cv_c_lto_cross_compile}])])
+if test "${ac_cv_c_lto}" = "yes"; then
   AC_DEFINE([HAVE_LTO], 1,
            [Define to 1 if -flto works.])
 fi