FBSD: allow exclusion of kernel symbols

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>
This commit is contained in:
Ben Kaduk 2011-09-26 20:21:49 -04:00 committed by Derrick Brashear
parent 9133aa6ed3
commit 5e8c4b7c8a

View File

@ -47,7 +47,10 @@ KSRC = @BSD_KERNEL_PATH@
KBLD = @BSD_KERNEL_BUILD@ KBLD = @BSD_KERNEL_BUILD@
# keep symbols if --enable-debug-kernel # 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) # We are not doing very well (WARNS=2 brings in printf format type checking)
WARNS= 1 WARNS= 1