Re: [PATCH] Clean up CFLAGS detecting code and add AX macro for _FORTIFY_SOURCE

David Seifert <[email protected]>
Newsgroups gmane.comp.audio.compression.flac.devel
Message-ID <[email protected]>
On Sun, 2017-02-05 at 20:47 +1100, Erik de Castro Lopo wrote:
> David Seifert wrote:
> 
> > -	AC_PROG_SED
> > -	CFLAGS=$(echo "$CFLAGS" | $SED 's/-O2//')
> > -	CFLAGS="-O3 -funroll-loops $CFLAGS"
> > +	CFLAGS="-O3 -funroll-loops"
> 
> Doesn't this mean that `-O2` and `-O3` will end up in CFLAGS? 
> 
> Erik

No, because the block happens only if ${enable_flags_setting} == yes,
and that can only occur if all CFLAGS/CXXFLAGS/CPPFLAGS/LDFLAGS are
unset. If I do ./configure CFLAGS="-O2", the whole block won't be
triggered (as intended). That block only exists to set defaults for
users running ./configure without any of the aforementioned flags set,
not for users overriding them.

Regards
David
_______________________________________________
flac-dev mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/flac-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.