From 5e8c4b7c8a69e20ba35bd12950b95c8650cf4012 Mon Sep 17 00:00:00 2001 From: Ben Kaduk Date: Mon, 26 Sep 2011 20:21:49 -0400 Subject: [PATCH] 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 --- src/libafs/MakefileProto.FBSD.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libafs/MakefileProto.FBSD.in b/src/libafs/MakefileProto.FBSD.in index 227fe1b564..a3f2bffcba 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