From: Joe Gorse Date: Thu, 16 Feb 2017 23:01:50 +0000 (-0500) Subject: LINUX: Bring debug symbols back to the Linux kernel module. X-Git-Tag: upstream/1.8.0_pre2^3~61 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=961cee00b8f5c302de5f66beb81caa33242c7971;p=packages%2Fo%2Fopenafs.git LINUX: Bring debug symbols back to the Linux kernel module. Starting with 4.8 Linux kernels our existing build script generator, make_kbuild_makefile.pl, does not pass the debugging symbols CFLAGS that were present when building for previous kernels. This fix appends the $(KERN_DBG) variable which will only be defined when the configuration includes the --enable-debug-kernel option. Change-Id: I9a85dc0311a3a706239bc9e471b2d7197ebe1946 Reviewed-on: https://gerrit.openafs.org/12519 Reviewed-by: Benjamin Kaduk Tested-by: Benjamin Kaduk --- diff --git a/src/libafs/MakefileProto.LINUX.in b/src/libafs/MakefileProto.LINUX.in index 6e7b29000..564b2ef0c 100644 --- a/src/libafs/MakefileProto.LINUX.in +++ b/src/libafs/MakefileProto.LINUX.in @@ -127,7 +127,7 @@ EXTRA_CFLAGS = -I$(LINUX_KERNEL_PATH)/arch/um/include -I$(LINUX_KERNEL_PATH)/arc INCLUDES = -I. -I../ -I${TOP_OBJDIR}/src/config \ -I${TOP_SRCDIR}/rx -I${TOP_OBJDIR}/src/rxstat -CFLAGS = $(CCFLAGS) $(DEFINES) $(INCLUDES) +CFLAGS = $(CCFLAGS) $(KERN_DBG) $(DEFINES) $(INCLUDES) # Name of directory to hold object files and libraries. KOBJ = MODLOAD