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 sub Makefiles:
ifeq ($(CONFIG_MCOUNT),y)
$(obj)/mcount.o:
$(CC) $(subst -pg,,$(CFLAGS)) -c -o $(obj)/mcount.o
$(src)/mcount.c
endif
This method is broken and a dirty way to do it. Can anyone suggest a
clean way to accomplish this?
--
Adam Litke (agl at us.ibm.com)
IBM Linux Technology Center
(503) 578 - 3283 t/l 775 - 3283
-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise
Linux in the Boardroom; in the Front Office; & in the Server Room
http://www.enterpriselinuxforum.com
_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel