From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26130 invoked by alias); 14 Nov 2014 10:52:29 -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 26113 invoked by uid 89); 14 Nov 2014 10:52:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: b.a.painless.aa.net.uk Received: from b.a.painless.aa.net.uk (HELO b.a.painless.aa.net.uk) (81.187.30.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 14 Nov 2014 10:52:26 +0000 Received: from home.pinkhut.co.uk ([81.187.28.34]) by a.painless.aa.net.uk with esmtp (Exim 4.77) (envelope-from ) id 1XpEUI-0002ib-Cn for crossgcc@sourceware.org; Fri, 14 Nov 2014 10:52:22 +0000 Received: by home.pinkhut.co.uk (Postfix, from userid 1000) id 2BDF12C744C; Fri, 14 Nov 2014 10:52:22 +0000 (GMT) Date: Fri, 14 Nov 2014 10:52:00 -0000 From: Bob Dunlop To: crossgcc@sourceware.org Subject: [PATCH] newlib2 and CFLAGS_FOR_TARGET Message-ID: <20141114105222.GA7143@xyzzy.org.uk> Mail-Followup-To: crossgcc@sourceware.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="bg08WKrSYDhXBjb5" Content-Disposition: inline User-Agent: Mutt/1.5.22 (2013-10-16) X-IsSubscribed: yes X-SW-Source: 2014-11/txt/msg00005.txt.bz2 --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 558 Hi, I've been having problems passing CFLAGS_FOR_TARGET to newlib-2.0 and 2.1 builds. Basically selecting optimising for space was overriding any other flags. This patch placed in crosstool-ng-1.20.0/patches/newlib/2.0.0/ and 2.1.0/ prevents the override, appending the space optimising flags to any existing settings. Tested compiling newlib-2.0.0 for ARM with crosstool-NG-1.20.0 and GNU Make 3.82. This is basically a bug in newlibs configuration code not crosstool-NG and I have reported this on their mailing list as well. -- Bob Dunlop --bg08WKrSYDhXBjb5 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="100-fix-optimising-for-space.patch" Content-length: 336 --- newlib-2.0.0/config/mt-ospace-orig 2014-11-13 12:02:45.463578281 +0000 +++ newlib-2.0.0/config/mt-ospace 2014-11-13 12:03:01.409592374 +0000 @@ -1,3 +1,3 @@ # Build libraries optimizing for space, not speed. - CFLAGS_FOR_TARGET = -g -Os - CXXFLAGS_FOR_TARGET = -g -Os + CFLAGS_FOR_TARGET += -g -Os + CXXFLAGS_FOR_TARGET += -g -Os --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-length: 71 -- For unsubscribe information see http://sourceware.org/lists.html#faq --bg08WKrSYDhXBjb5--