summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-02-19 07:21:09 (GMT)
committerAlexey Neyman <stilor@att.net>2017-02-19 07:21:09 (GMT)
commitd20091d730f896155462333bbd770eb6e4946a52 (patch)
tree86df442c6ecd7d5c3303a3fda9298685e75ec7bc
parent4d723d08924a5746da2336410e39de5a7e363760 (diff)
Newlib's LTO only makes sense if GCC supports it
Signed-off-by: Alexey Neyman <stilor@att.net>
-rw-r--r--config/libc/newlib.in.21
1 files changed, 1 insertions, 0 deletions
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