From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernhard Reutner-Fischer Date: Wed, 7 Oct 2009 08:47:51 +0200 Subject: [Buildroot] [PATCH 6/6] remove superfluous OPTIMIZE and DEBUG config knobs In-Reply-To: <20091006223558.73d0678f@surf> References: <1a6b4f990a536bfd23ae1e57a2cd11527761f8ec.1254853146.git.rep.dot.nop@gmail.com> <4a5a0f10dbaecfd7b024c0cf1e90fd68a6730eac.1254853146.git.rep.dot.nop@gmail.com> <6fe0ac8fa1f42152f604ca708aff08b8f119073a.1254853146.git.rep.dot.nop@gmail.com> <582a63d745311a980a8700a2a0ec17c3ae0f5ca9.1254853146.git.rep.dot.nop@gmail.com> <5959e530273437a31071499009cecc7a7e9ab461.1254853146.git.rep.dot.nop@gmail.com> <4bf0f4eae22ac9a6b1afa4621ff32b3f43887a85.1254853146.git.rep.dot.nop@gmail.com> <871vlg2wn7.fsf@macbook.be.48ers.dk> <20091006184939.GD10261@mx.loc> <20091006223558.73d0678f@surf> Message-ID: <20091007064751.GF10261@mx.loc> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On Tue, Oct 06, 2009 at 10:35:58PM +0200, Thomas Petazzoni wrote: >Le Tue, 6 Oct 2009 20:49:39 +0200, >Bernhard Reutner-Fischer a ?crit : > >> The help-text of BR2_TARGET_OPTIMIZATION reads: >> ---8<--- >> Optimizations to use when building for the target host. >> ---8<--- >> >> If you want to build with -O0 -g3 -ggdb3 , then just set it to that. >> Adding knobs for each -Ox and -gx is not userfriendly but odd, given >> that there always was BR2_TARGET_OPTIMIZATION and that this is (or >> should be anyway) used _everywhere_. > >Hum, you're right. But I think I would still like to keep a "enable >debug" option that would : I didn't remove that option, it's still there :) Note, however, that previously we handled this via the STRIP setting (none, strip, sstrip) automagically. The auto stuff needs such an additional knob since it wouldn't be really clean to wire it up on STRIP_none, agree 100%. > > * Compile with -g and keep the unstripped binary in the staging/ > directory the staging area should not be stripped anyway (unless a package does it behind our back)