FBSD: allow exclusion of kernel symbols
authorBen Kaduk <kaduk@mit.edu>
Tue, 27 Sep 2011 00:21:49 +0000 (20:21 -0400)
committerDerrick Brashear <shadow@dementix.org>
Wed, 28 Sep 2011 14:01:32 +0000 (07:01 -0700)
Gerrit/5503 added support for kernel module symbols in the
bsd.kmod.mk world; however, the inclusion of symbols is conditoinal
on the DEBUG_FLAGS make variable being *set*, as opposed to nonempty.
So we must use an intermediate variable to store the AC_SUBST
result and conditionalize assignment to DEBUG_FLAGS on whether
or not it is empty.

Change-Id: I7f86fd08d6dcf1ac7116680db98db13f5f31be7b
Reviewed-on: http://gerrit.openafs.org/5507
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>

src/libafs/MakefileProto.FBSD.in

index 227fe1b..a3f2bff 100644 (file)
@@ -47,7 +47,10 @@ KSRC = @BSD_KERNEL_PATH@
 KBLD = @BSD_KERNEL_BUILD@
 
 # keep symbols if --enable-debug-kernel
-DEBUG_FLAGS = @DEBUG_FLAGS@
+AC_DEBUG_FLAGS = @DEBUG_FLAGS@
+.if !empty(AC_DEBUG_FLAGS)
+DEBUG_FLAGS=   ${AC_DEBUG_FLAGS}
+.endif
 
 # We are not doing very well (WARNS=2 brings in printf format type checking)
 WARNS= 1