When building GCC, use CT_GCC_CORE_EXTRA_CONFIG_ARRAY for additional options.

Submitted by Solomon Peachy on July 30, 2015, 4:58 p.m.

Details

Message ID 1438275514-12242-1-git-send-email-pizza@shaftnet.org
State New
Headers show

Commit Message

Solomon Peachy July 30, 2015, 4:58 p.m.
From: Solomon Peachy <slp@sunrisemicro.com>

Among other things, this fixes GCC builds with ARM Thumb-only targets.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
---
 scripts/build/cc/100-gcc.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/scripts/build/cc/100-gcc.sh b/scripts/build/cc/100-gcc.sh
index 56b6e21..05b5456 100644
--- a/scripts/build/cc/100-gcc.sh
+++ b/scripts/build/cc/100-gcc.sh
@@ -207,17 +207,17 @@  do_gcc_core_backend() {
             extra_config+=("--with-newlib")
             extra_config+=("--enable-threads=no")
             extra_config+=("--disable-shared")
-            extra_user_config=( "${CT_CC_CORE_EXTRA_CONFIG_ARRAY[@]}" )
+            extra_user_config=( "${CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY[@]}" )
             ;;
         shared)
             extra_config+=("--enable-shared")
-            extra_user_config=( "${CT_CC_CORE_EXTRA_CONFIG_ARRAY[@]}" )
+            extra_user_config=( "${CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY[@]}" )
             ;;
         baremetal)
             extra_config+=("--with-newlib")
             extra_config+=("--enable-threads=no")
             extra_config+=("--disable-shared")
-            extra_user_config=( "${CT_CC_EXTRA_CONFIG_ARRAY[@]}" )
+            extra_user_config=( "${CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY[@]}" )
             ;;
         *)
             CT_Abort "Internal Error: 'mode' must be one of: 'static', 'shared' or 'baremetal', not '${mode:-(empty)}'"