diff options
Diffstat (limited to 'm4')
-rw-r--r-- | m4/compiler_options.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/compiler_options.m4 b/m4/compiler_options.m4 index 1f283db692..9d0c58814b 100644 --- a/m4/compiler_options.m4 +++ b/m4/compiler_options.m4 @@ -150,9 +150,9 @@ fi AC_DEFUN([NM_LTO], [AC_ARG_ENABLE(lto, AS_HELP_STRING([--enable-lto], [Enable Link Time Optimization for smaller size (default: no)])) if (test "${enable_lto}" = "yes"); then - CC_CHECK_FLAG_APPEND([lto_flags], [CFLAGS], [-flto]) + CC_CHECK_FLAG_APPEND([lto_flags], [CFLAGS], [-flto -flto-partition=none]) if (test -n "${lto_flags}"); then - CFLAGS="-flto $CFLAGS" + CFLAGS="-flto -flto-partition=none $CFLAGS" else AC_MSG_ERROR([Link Time Optimization -flto is not supported.]) fi |