]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Only specify CFLAGS_NO* with --enable-checking
authorAndrew Deason <adeason@sinenomine.net>
Tue, 23 Nov 2010 03:54:32 +0000 (22:54 -0500)
committerDerrick Brashear <shadow@dementia.org>
Mon, 20 Dec 2010 22:33:39 +0000 (14:33 -0800)
commit2fa92a58e827aec77c8b4dbe50d06e54d185f316
treef9e074f5f07aa949c7e34b2d854925bcb38250f1
parent0f27f0925c17c24e98687f92e5299541a7ab794c
Only specify CFLAGS_NO* with --enable-checking

Currently we are always specifying e.g. CFLAGS_NOUNUSED as -Wno-unused
when we think we are compiling with gcc. Since autoconf always tries
to use gcc when possible, this breaks the build if we have a gcc
available but we use another cc for building.

This should be fixed otherwise, but in the meantime at least make this
only happen if warnings are actually turned on, so the build is less
likely to break with a default ./configure invocation.

Reviewed-on: http://gerrit.openafs.org/3366
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 18793d4bfaeb88fd456c8d489165139126c0d293)

Change-Id: Ifd31548dfecdd1a4838047e2548a8b2265422d26
Reviewed-on: http://gerrit.openafs.org/3557
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/cf/osconf.m4