From patchwork Thu Jul 30 16:58:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Solomon Peachy X-Patchwork-Id: 502217 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 7EE4E140B0E for ; Fri, 31 Jul 2015 02:58:54 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=iCIy1lJc; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=CkNWkE9rC5Q4AL/K6pGmJ349hjq6xQ0qv8XenfFziry2YHaP5xMx8 Bs6W9cOU87KjkCP3y9UN9Nfyj5UCb5jhjoooQrBm+kx7On2ca8qUSSEapWEqqZ0t 1zngF2Q0vMPQdmryUFyyK1btGtjv7Q+1vcEPW8oO4glWXllVx/TV18= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=GwBtzx4MOBHlqWdc232zlaSqYNY=; b=iCIy1lJctd+kEpnCywxa0kXIED00 7dWbrh3a6IRcQ2r7WV2bpzLnEZsF2D5KJJoSqOioI4t3uFU1Gad23NeOCmcQuZ4m JJnTrNxwvlh7K834qP2c6IvBZ5jbb7Oi6uuUmZp32qfPQ673uWhi/UEI9gLyJuCE UqH05WToTuG/GJc= Received: (qmail 68785 invoked by alias); 30 Jul 2015 16:58:46 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Delivered-To: mailing list crossgcc@sourceware.org Received: (qmail 68774 invoked by uid 89); 30 Jul 2015 16:58:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.7 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, LIKELY_SPAM_FROM autolearn=no version=3.3.2 X-HELO: stuffed.shaftnet.org Received: from 162-17-110-37-static.hfc.comcastbusiness.net (HELO stuffed.shaftnet.org) (162.17.110.37) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 30 Jul 2015 16:58:43 +0000 Received: from stuffed.shaftnet.org (localhost [127.0.0.1]) by stuffed.shaftnet.org (8.14.9/8.14.9) with ESMTP id t6UGwdDO012286 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 30 Jul 2015 12:58:39 -0400 Received: (from pizza@localhost) by stuffed.shaftnet.org (8.14.9/8.14.9/Submit) id t6UGwcZY012285; Thu, 30 Jul 2015 12:58:38 -0400 From: Solomon Peachy To: crossgcc@sourceware.org Cc: Solomon Peachy , Solomon Peachy Subject: [PATCH] When building GCC, use CT_GCC_CORE_EXTRA_CONFIG_ARRAY for additional options. Date: Thu, 30 Jul 2015 12:58:34 -0400 Message-Id: <1438275514-12242-1-git-send-email-pizza@shaftnet.org> X-IsSubscribed: yes From: Solomon Peachy Among other things, this fixes GCC builds with ARM Thumb-only targets. Signed-off-by: Solomon Peachy --- scripts/build/cc/100-gcc.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)}'"