diff options
author | Bryan Hundven <bryanhundven@gmail.com> | 2014-09-04 23:34:00 -0700 |
---|---|---|
committer | Yann E. MORIN <yann.morin.1998@free.fr> | 2014-09-11 23:12:11 +0200 |
commit | cb27b229749b338828ccff80e2895c4c957250ba (patch) | |
tree | 2b3f1cb7e133f1fff7d268d5971d7c04240e832b /scripts/build/libc | |
parent | 0c6475957271be3ef18848652a417b809caa7da8 (diff) | |
download | crosstool-ng-cb27b229749b338828ccff80e2895c4c957250ba.tar.gz crosstool-ng-cb27b229749b338828ccff80e2895c4c957250ba.tar.bz2 crosstool-ng-cb27b229749b338828ccff80e2895c4c957250ba.zip |
libc/musl: Add options for optimization
This commit adds configuration knobs for optimizing musl-libc.
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Diffstat (limited to 'scripts/build/libc')
-rw-r--r-- | scripts/build/libc/musl.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/build/libc/musl.sh b/scripts/build/libc/musl.sh index 7172cf28..6964a2dc 100644 --- a/scripts/build/libc/musl.sh +++ b/scripts/build/libc/musl.sh @@ -37,6 +37,7 @@ do_libc_check_config() { do_libc_configure() { CT_DoLog EXTRA "Configuring C library" local -a extra_cflags + local -a extra_config # From buildroot: # gcc constant folding bug with weak aliases workaround @@ -45,6 +46,8 @@ do_libc_configure() { extra_cflags+=("-fno-toplevel-reorder") fi + extra_config+=( "--enable-optimize=${CT_LIBC_MUSL_OPTIMIZE}" ) + # NOTE: musl handles the build/host/target a little bit differently # then one would expect: # build : not used @@ -57,7 +60,8 @@ do_libc_configure() { --host="${CT_TARGET}" \ --target="${CT_TARGET}" \ --prefix="/usr" \ - --disable-gcc-wrapper + --disable-gcc-wrapper \ + "${extra_config[@]}" } do_libc_start_files() { |