Re: [kbuild-devel] Clean alternative to $subst(...,...,$(CFLAGS))

2003-10-24 Thread Sam Ravnborg
On Mon, Oct 20, 2003 at 11:44:28AM -0700, Adam Litke wrote: I am working on a patch which requires all .c files to be compiled with the -pg option. However, there are two specific files for which -pg must not be used. Below is the current way I am accomplishing this. Hi Adam. I have tried to

Re: [kbuild-devel] Clean alternative to $subst(...,...,$(CFLAGS))

2003-10-24 Thread Adam Litke
On Fri, 2003-10-24 at 11:39, Sam Ravnborg wrote: Any chance the last two files can be compiled with -pg also with a few changes? I do not see why debugging info can harm here. Functions inside files compiled with -pg get instrumented with a call to the symbol 'mcount' after the prologue. If

Re: [kbuild-devel] Clean alternative to $subst(...,...,$(CFLAGS))

2003-10-24 Thread Sam Ravnborg
On Fri, Oct 24, 2003 at 12:56:55PM -0700, Adam Litke wrote: On Fri, 2003-10-24 at 11:39, Sam Ravnborg wrote: Any chance the last two files can be compiled with -pg also with a few changes? I do not see why debugging info can harm here. Functions inside files compiled with -pg get

[kbuild-devel] Clean alternative to $subst(...,...,$(CFLAGS))

2003-10-20 Thread Adam Litke
I am working on a patch which requires all .c files to be compiled with the -pg option. However, there are two specific files for which -pg must not be used. Below is the current way I am accomplishing this. In the top-level Makefile: ifeq ($(CONFIG_MCOUNT),y) CFLAGS += -pg endif In