diff options
author | Alexey Neyman <stilor@att.net> | 2016-04-03 17:26:24 (GMT) |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2016-08-23 18:00:27 (GMT) |
commit | 0fdc1887a7426bf7974f0ca6bb24815dff4a2997 (patch) | |
tree | d188e5a20d2deba7d516c648d8f9a3adb1a5ddc4 /scripts/build/libc | |
parent | 3ebc5d0c1e72e95f05a02818a3e2c642663d4b74 (diff) |
Change multilib functions to set the variable.
Rather than echo-ing the new value, set the value into the variable with
the name passed as an argument (similar to CT_SanitizeVarDir). This
allows to use CT_DoLog in these functions.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/libc')
-rw-r--r-- | scripts/build/libc/glibc.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh index a08ed97..dc9443c 100644 --- a/scripts/build/libc/glibc.sh +++ b/scripts/build/libc/glibc.sh @@ -120,8 +120,9 @@ do_libc_backend() { multi_root=$( "${CT_TARGET}-gcc" -print-sysroot ${multi_flags} ) # Adjust target tuple according to CFLAGS + any GLIBC quirks - target=$( CT_DoMultilibTarget "${CT_TARGET}" ${extra_flags} ) - target=$( CT_DoArchGlibcAdjustTuple "${target}" ) + target="${CT_TARGET}" + CT_DoMultilibTarget target ${extra_flags} + CT_DoArchGlibcAdjustTuple target CT_DoStep INFO "Building for multilib '${multi_flags}'" # Ensure sysroot (with suffix, if applicable) exists |