Re: [Fresco-devel] Bug 223 - "*-config scripts have inappropriate --cxxflags output"

Stefan Seefeld <[email protected]> Tue, 01 Apr 2003 09:17:09 -0500
Newsgroups gmane.comp.video.fresco.devel
Message-ID <[email protected]>
Nathaniel Smith wrote:


> On Tue, Apr 01, 2003 at 07:21:19PM +1200, sashang wrote:


>>3) The flags -g (produce debugging info) and -O2 (optimization level) aren't
>>   generally bad flags to use, unless they result in incorrect code.
>>
>>I don't feel that this issue is a bug at all.
> 
> 
> The bug is not that we compile with -g -O2.  The bug is that those
> options end up in the *-config scripts, which forces any _other_
> programs that _use_ Fresco to be compiled with -g -O2, which is not
> something we should be enforcing on random other projects.

I don't quite agree. The issue is not whether '-g' is generally
considered bad or not, but whether I want to compile everything with
debug support.

I do want the ability to define (either with --with-optimization style
params or more fine-grained with CXXFLAGS="-foo -bar") how the compiler
behaves.

I agree that in all cases we should mark which of those flags are to be
exported, i.e. are vital for applications that want to build with our 
libs (such as -pthread).

Regards,
		Stefan