diff -urpN -X /home/fletch/.diff.exclude 520-queuestat/Makefile 550-config_debug/Makefile --- 520-queuestat/Makefile Sat May 10 18:48:27 2003 +++ 550-config_debug/Makefile Sat May 10 19:21:30 2003 @@ -50,8 +50,13 @@ TOPDIR := $(CURDIR) HOSTCC = gcc HOSTCXX = g++ +ifdef CONFIG_DEBUG_SYMBOLS HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer HOSTCXXFLAGS = -O2 +else +HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -g -fomit-frame-pointer +HOSTCXXFLAGS = -O2 -g +endif CROSS_COMPILE = @@ -182,8 +187,13 @@ AFLAGS_KERNEL = NOSTDINC_FLAGS = -nostdinc -iwithprefix include CPPFLAGS := -D__KERNEL__ -Iinclude +ifdef CONFIG_DEBUG_SYMBOLS +CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -g \ + -fno-strict-aliasing -fno-common +else CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \ -fno-strict-aliasing -fno-common +endif AFLAGS := -D__ASSEMBLY__ $(CPPFLAGS) export VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION KERNELRELEASE ARCH \ diff -urpN -X /home/fletch/.diff.exclude 520-queuestat/arch/i386/Kconfig 550-config_debug/arch/i386/Kconfig --- 520-queuestat/arch/i386/Kconfig Sat May 10 19:03:14 2003 +++ 550-config_debug/arch/i386/Kconfig Sat May 10 19:21:30 2003 @@ -1563,6 +1563,10 @@ config KPROBES for kernel debugging, non-intrusive instrumentation and testing. If in doubt, say "N". +config DEBUG_SYMBOLS + bool "Get debug symbols (turns on -g)" + depends on DEBUG_KERNEL + config DEBUG_STACKOVERFLOW bool "Check for stack overflows" depends on DEBUG_KERNEL