LINUX: Honor --enable-checking for libafs 82/13682/7
authorAndrew Deason <adeason@sinenomine.net>
Wed, 10 Jul 2019 17:42:54 +0000 (12:42 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 23 Aug 2019 04:21:12 +0000 (00:21 -0400)
commit6e0f1c3b45102e7644d25cf34395ca980414317f
treed7efac9d4b49e1219ae312f0a74f4beacb5a7a30
parent13acb6fbefd6c4f4af951270ca07a1a5541052fa
LINUX: Honor --enable-checking for libafs

When we build the kernel module on LINUX, we don't pass in any of our
CFLAGS, since the Linux buildsystem itself figures out what flags are
needed. However, this means that we don't pass in -Werror when
--enable-checking is turned on, so warnings may not cause the build to
fail.

To fix this, create a new autoconf variable, called CFLAGS_WERROR,
that only contains -Werror if --enable-checking is turned on. We then
pass that into the Linux module buildsystem, so -Werror is given to
the compiler when building our module.

Change-Id: I0f1ec8b1a8096d10642c67b86314604c20ea2c60
Reviewed-on: https://gerrit.openafs.org/13682
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/cf/osconf.m4
src/libafs/MakefileProto.LINUX.in