autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Simplify _AC_PROG_CC_G


From: Akim Demaille
Subject: Re: [PATCH] Simplify _AC_PROG_CC_G
Date: 18 Oct 2000 18:07:22 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

>>>>> "Alexandre" == Alexandre Oliva <address@hidden> writes:

Alexandre> Which means Morten's change is a step in the right
Alexandre> direction.

OK, I'm applying it.

Alexandre> One thing we could do in case a compilation with `-g'
Alexandre> produces an object file, a non-empty output and a zero exit
Alexandre> status, is to run another compilation without `-g' and
Alexandre> compare the compiler output (but not the object files, that
Alexandre> may have embedded timestamps).  In case the output changes,
Alexandre> we assume `-g' is not supported.  How does this sound?

In fact, I'm somewhat bugged by the fact that Autoconf decides to add
-O2 and -g like this.  It's a cool feature I mean, but it's somewhat
dirty.

IMHO, what would help making this more uniform is a macro which tests
whether we can/can't add an option of CFLAGS/CXXFLAGS etc.  We could
use this macro repeatedly with -g, then -O2 instead of having this
bizarre dependency on the GNUness of the compiler.  This macro would
also be useful to all these people who want to add -Wall etc.

        Akim



reply via email to

[Prev in Thread] Current Thread [Next in Thread]