On Fri, 2005-03-11 at 10:31 -0600, Curran, Dominic wrote: > Hi, > I am compiling my 2.6 kernel module as described in this article: > http://lwn.net/Articles/21823/ > So Makefile looks like this: > > ifneq ($(KERNELRELEASE),) > obj-m := module.o > else > KDIR := /lib/modules/$(shell uname -r)/build > PWD := $(shell pwd) > > default: > $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules > endif > > However, when the module compiles it is built with gcc's -g debug flag > by default. > How can I build my module without this -g flag ? you use the same flags as the kernel was built with. So you could just change your kernel to not be built with -g .... -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/