From d20091d730f896155462333bbd770eb6e4946a52 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sat, 18 Feb 2017 23:21:09 -0800 Subject: Newlib's LTO only makes sense if GCC supports it Signed-off-by: Alexey Neyman diff --git a/config/libc/newlib.in.2 b/config/libc/newlib.in.2 index 927cce8..96bd22b 100644 --- a/config/libc/newlib.in.2 +++ b/config/libc/newlib.in.2 @@ -140,6 +140,7 @@ config LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE config LIBC_NEWLIB_LTO bool prompt "Enable Link Time Optimization" + depends on CC_GCC_USE_LTO help Builds the libraries with -flto to enable more aggressive link time optimization. You will need to add -flto-partition=one to your -- cgit v0.10.2-6-g49f6