autoconf
[Top][All Lists]
Advanced

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

Re: Problems Configuring (C Compiler cannot produce executables)


From: Ralf Corsepius
Subject: Re: Problems Configuring (C Compiler cannot produce executables)
Date: Thu, 23 Aug 2012 09:36:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0

On 08/23/2012 09:14 AM, Miles Bader wrote:
Russ Allbery <address@hidden> writes:
Also, you should generally not add -Wall -Wextra to the configure flags,
and instead add it after configure completes, since many of the tricks
configure has to use will result in warnings when you turn on all the
compiler warnings, which can confuse configure.

How can that confuse configure?

No idea. The working priciples of standard autoconf checks are based on evaluating compiler errors only and to ignore warnings[1], therefore -Wall -Wextra must not desturb "by definition".

However, adding -Werror to CFLAGS is dangerous, because this will raise GCC warnings to errors, which will cause autoconf to become confused and to produce bogus results.

Ralf

[1] There exist (non-standard) autoconf checks which are based on evaluating compiler warnings. If properly written, these also should not be affected by "-Wall -Wextra", ... if they are, these checks need to be considered broken ;)




reply via email to

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