From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gustavo Zacarias Date: Wed, 20 Nov 2013 08:45:23 -0300 Subject: [Buildroot] buildroot: gcc options In-Reply-To: <528B9E7C.1010804@mind.be> References: <528B59FE.6070205@zacarias.com.ar> <528B9E7C.1010804@mind.be> Message-ID: <528CA0D3.8040906@zacarias.com.ar> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On 11/19/2013 02:23 PM, Arnout Vandecappelle wrote: > Is there any reason why BR2_TARGET_OPTIMIZATIONS isn't used for > building the C library? The libc is somewhat fragile when built with some insane CFLAGS, for instance (e)glibc is built at O2 (by Thomas P), allowing a switch to another optimization level might be troublesome. uClibc forces -Os in Rules.mak for BUILD_CFLAGS for example. I'm unsure if we'd like to open pandora's box by merging them, maybe add an option just for the libc? Regards.