diff options
author | Alastair D'Silva <alastair@d-silva.org> | 2016-12-24 01:26:05 +1100 |
---|---|---|
committer | Alastair D'Silva <alastair@d-silva.org> | 2017-01-10 10:51:32 +1100 |
commit | 14896a2600f99ddb86d7c100ec8e57557c013438 (patch) | |
tree | 941ba5f4e19c5475754fce22348fb5a73cbbb294 /config/libc | |
parent | 2ac39621bcb8fa205029591d3e6c67d66080e001 (diff) | |
download | crosstool-ng-14896a2600f99ddb86d7c100ec8e57557c013438.tar.gz crosstool-ng-14896a2600f99ddb86d7c100ec8e57557c013438.tar.bz2 crosstool-ng-14896a2600f99ddb86d7c100ec8e57557c013438.zip |
Support building Newlib with Link Time Optimisation
Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
Diffstat (limited to 'config/libc')
-rw-r--r-- | config/libc/newlib.in.2 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config/libc/newlib.in.2 b/config/libc/newlib.in.2 index 64630b03..927cce89 100644 --- a/config/libc/newlib.in.2 +++ b/config/libc/newlib.in.2 @@ -137,6 +137,15 @@ config LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE This will compile newlib with -Os. +config LIBC_NEWLIB_LTO + bool + prompt "Enable Link Time Optimization" + help + Builds the libraries with -flto to enable more aggressive link time + optimization. You will need to add -flto-partition=one to your + application's link line to keep the RETURN assembler macro together + with it's consumers. + config LIBC_NEWLIB_NANO_MALLOC bool prompt "Enable Nano Malloc" |