From ea702af5c3298649f7036e10e9f3f23347f04ee4 Mon Sep 17 00:00:00 2001 From: M1cha Date: Mon, 12 Feb 2018 07:45:21 +0100 Subject: [PATCH] cc/gcc: use correct sysroot arg for do_gcc_core_backend This fixes gccs LIMITS_H_TEST detection for baremetal targets so limits.h will be installed correctly. Signed-off-by: Michael Zimmermann --- scripts/build/cc/gcc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index b5ae7b10..a6bf1ac5 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -315,10 +315,12 @@ do_gcc_core_backend() { core1|core2) CT_DoLog EXTRA "Configuring core C gcc compiler" log_txt="gcc" + extra_config+=( "${CT_CC_CORE_SYSROOT_ARG[@]}" ) extra_user_config=( "${CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY[@]}" ) ;; gcc_build|gcc_host) CT_DoLog EXTRA "Configuring final gcc compiler" + extra_config+=( "${CT_CC_SYSROOT_ARG[@]}" ) extra_user_config=( "${CT_CC_GCC_EXTRA_CONFIG_ARRAY[@]}" ) log_txt="final gcc compiler" # to inhibit the libiberty and libgcc tricks later on @@ -577,7 +579,6 @@ do_gcc_core_backend() { --target=${CT_TARGET} \ --prefix="${prefix}" \ --with-local-prefix="${CT_SYSROOT_DIR}" \ - ${CT_CC_CORE_SYSROOT_ARG} \ "${extra_config[@]}" \ --enable-languages="${lang_list}" \ "${extra_user_config[@]}"