From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30446 invoked by alias); 25 May 2013 18:43:06 -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 30436 invoked by uid 89); 25 May 2013 18:43:05 -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,TW_SG autolearn=ham version=3.3.1 Received: from mail-oa0-f49.google.com (HELO mail-oa0-f49.google.com) (209.85.219.49) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sat, 25 May 2013 18:43:00 +0000 Received: by mail-oa0-f49.google.com with SMTP id k14so7567253oag.36 for ; Sat, 25 May 2013 11:42:58 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.182.115.134 with SMTP id jo6mr14663037obb.84.1369507378602; Sat, 25 May 2013 11:42:58 -0700 (PDT) Received: by 10.76.152.101 with HTTP; Sat, 25 May 2013 11:42:58 -0700 (PDT) In-Reply-To: <1369490491980-233249.post@n7.nabble.com> References: <1369490491980-233249.post@n7.nabble.com> Date: Sat, 25 May 2013 18:43: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/msg00049.txt.bz2 Arnaud -- Most makefiles are set up so you can specify flags for that compilation on the make command line. You probably want to do something like this: make CFLAGS=-O3 CXXFLAGS=-O3 If you are passing multiple flags, you'll need to quote those values: make CFLAGS="-O3 -g" ... (If you try just: make -O3 then 'make' will think you're trying to pass some flag "-O" to make itself, not to the compilers invoked by make.) Best regards, Anthony Foiani On Sat, May 25, 2013 at 8:01 AM, gabx wrote: > Dear all, > > I am working since many weeks now on a armv7-a toolchain with gcc 4.8. It > builds with no issue since a while. > I am now trying to pass some optimization CXX_FLAGS. > > When I enable the -03 flag for example, I write this in my .config: > > # gcc other options > # > CT_CC_ENABLE_CXX_FLAGS="-O3". > > It builds fine. Now I am wondering if I have to pass again this flag when I > use this toolchain to build, let's say, android ROM. > Shall I : > $ make -03 > > or as this flag has been activated when building the toolchain I do not need > to pass it again ? > > In short, $ make or $ make -03 ? > > Thank you for help > > > > > -- > View this message in context: http://sourceware-org.1504.n7.nabble.com/gcc-CXX-FLAGS-tp233249.html > Sent from the Sourceware - crossgcc list mailing list archive at Nabble.com. > > -- > For unsubscribe information see http://sourceware.org/lists.html#faq > -- For unsubscribe information see http://sourceware.org/lists.html#faq