From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4826 invoked by alias); 28 Nov 2011 18:34:17 -0000 Received: (qmail 4753 invoked by uid 22791); 28 Nov 2011 18:34:16 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from smtp09.smtpout.orange.fr (HELO smtp.smtpout.orange.fr) (80.12.242.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Nov 2011 18:34:02 +0000 Received: from treguer.localnet ([90.32.37.166]) by mwinf5d32 with ME id 2ia11i0023b4rwA03ia18y; Mon, 28 Nov 2011 19:34:01 +0100 From: "Yann E. MORIN" To: crossgcc@sourceware.org Subject: Re: [PATCH] libc/newlib: remove hard-coded "-O" Date: Mon, 28 Nov 2011 18:34:00 -0000 User-Agent: KMail/1.13.5 (Linux/3.1.1-treguer; KDE/4.4.5; x86_64; ; ) Cc: Zhenqiang Chen References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201111281934.00602.yann.morin.1998@anciens.enib.fr> 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 X-SW-Source: 2011-11/txt/msg00194.txt.bz2 Zhenqiang, All, On Monday 28 November 2011 09:33:11 Zhenqiang Chen wrote: > exporting patch: > # HG changeset patch > # User Zhenqiang Chen > # Date 1322467523 -28800 > # Node ID 6e30947fabf76287cc92c16a12421aaa7ab51f0c > # Parent 49af7802dcd538ec3cb64337030b03ac2c6344d2 > libc/newlib: remove hard-coded "-O" > > With hard-coded "-O", users can not customize CFLAGS_FOR_TARGET > by CT_TARGET_CFLAGS. If "-O" is needed, users can input it in > CT_TARGET_CFLAGS. By default, "-Os" is enabled. > > Signed-off-by: Zhenqiang Chen > > diff -r 49af7802dcd5 -r 6e30947fabf7 scripts/build/libc/newlib.sh > --- a/scripts/build/libc/newlib.sh Tue Nov 22 10:08:10 2011 +0100 > +++ b/scripts/build/libc/newlib.sh Mon Nov 28 16:05:23 2011 +0800 > @@ -94,7 +94,7 @@ > # target : the machine newlib runs on > CT_DoExecLog CFG \ > CC_FOR_BUILD="${CT_BUILD}-gcc" \ > - CFLAGS_FOR_TARGET="${CT_TARGET_CFLAGS} -O" \ > + CFLAGS_FOR_TARGET="${CT_TARGET_CFLAGS}" \ > AR=${CT_TARGET}-ar \ > RANLIB=${CT_TARGET}-ranlib \ > "${CT_SRC_DIR}/newlib-$(libc_newlib_version)/configure" \ Queued here. Thank you! Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' -- For unsubscribe information see http://sourceware.org/lists.html#faq