From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8263 invoked by alias); 26 May 2013 01:42:20 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 8225 invoked by uid 89); 26 May 2013 01:42:15 -0000 X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 Received: from mail-ob0-f176.google.com (HELO mail-ob0-f176.google.com) (209.85.214.176) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sun, 26 May 2013 01:42:14 +0000 Received: by mail-ob0-f176.google.com with SMTP id wp18so6855443obc.21 for ; Sat, 25 May 2013 18:42:13 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.60.99.10 with SMTP id em10mr15044340oeb.58.1369532532886; Sat, 25 May 2013 18:42:12 -0700 (PDT) Received: by 10.76.152.101 with HTTP; Sat, 25 May 2013 18:42:12 -0700 (PDT) In-Reply-To: References: <1369490491980-233249.post@n7.nabble.com> Date: Sun, 26 May 2013 01:42:00 -0000 Message-ID: Subject: Re: gcc CXX_FLAGS From: Anthony Foiani To: gabx Cc: crossgcc maillist Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2013-05/txt/msg00052.txt.bz2 Arnaud -- On Sat, May 25, 2013 at 4:59 PM, gabx wrote: > Now I am still wondering if I need to pass again the flags when I build the > android ROM or Kernel. Generally, yes. As Yann explained, the CT_CC_... variables are only used to build gcc itself; they are not set when you use the built gcc to build other projects. The "export ..." method should work, although you might want to try it with the defaults first -- the Linux kernel, at least, should be pretty smart about picking the right flags for the various hardware targets. Picking other flags could very well lead to instability. (There was an issue with "-Os" on some platforms for quite a while, and that's even a fairly standard Linux kernel config option.) Also note that having a toolchain, or even a toolchain and a kernel, is only a small part of building a fully distribution that can run on a given platform. It's been covered here before, e.g.; http://sourceware.org/ml/crossgcc/2013-03/msg00008.html If this level of indirection makes you uncomfortable, you might see if one of the "distribution building" tools (yocto, etc) has your platform as a target. Either way, good luck! Best regards, Anthony Foiani -- For unsubscribe information see http://sourceware.org/lists.html#faq