diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-03-12 01:28:46 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-03-12 01:28:46 +0200 |
commit | aa20eece28fce4517d781b6c47ada472cb188faf (patch) | |
tree | 431c19c8015d4952c8a2ba19ac5b98ec98dcdfa2 /m4 | |
parent | a2b6ad6782b46f97a092addfa082e19e11053a9b (diff) |
allow -flto to be set when cross compiling
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ax_c_lto.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/ax_c_lto.m4 b/m4/ax_c_lto.m4 index 945527733e..7e6bc0119f 100644 --- a/m4/ax_c_lto.m4 +++ b/m4/ax_c_lto.m4 @@ -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 |