From: Ben Kaduk Date: Tue, 27 Sep 2011 00:21:49 +0000 (-0400) Subject: FBSD: allow exclusion of kernel symbols X-Git-Tag: upstream/1.8.0_pre1^2~3220 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=5e8c4b7c8a69e20ba35bd12950b95c8650cf4012;p=packages%2Fo%2Fopenafs.git 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 Reviewed-by: Derrick Brashear --- diff --git a/src/libafs/MakefileProto.FBSD.in b/src/libafs/MakefileProto.FBSD.in index 227fe1b56..a3f2bffcb 100644 --- a/src/libafs/MakefileProto.FBSD.in +++ b/src/libafs/MakefileProto.FBSD.in @@ -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