diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2012-08-19 19:47:19 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-08-20 08:36:41 -0400 |
commit | ed7e2c2ec59422b68b643c479a5816197620016e (patch) | |
tree | ed7d72fa262e6d4234101e247f85544f838d52f3 /tools/perf/Makefile | |
parent | f47b58b75f5e2a424834eb15f7565a7458a12f44 (diff) |
perf tools: Fix include order for bison/flex-generated C files
When we use a separate output directory, we add util/ to the include
path for the generated C files. However, this is currently added to the
end of the path, behind /usr/include/slang and /usr/include/gtk-2.0 if
use of the respective libraries is enabled. Thus the '#include
"../perf.h"' in util/parse-events.l can actually include
/usr/include/perf.h if it exists.
Move '-Iutil/' ahead of all the other preprocessor options.
Reported-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Sedat Dilek <sedat.dilek@gmail.com>
Link: http://lkml.kernel.org/r/1345420039.22400.80.camel@deadeye.wl.decadent.org.uk
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 90cfecf7913a..77e7ae3ef1b4 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -841,10 +841,10 @@ $(OUTPUT)perf.o perf.spec \ | |||
841 | # over the general rule for .o | 841 | # over the general rule for .o |
842 | 842 | ||
843 | $(OUTPUT)util/%-flex.o: $(OUTPUT)util/%-flex.c $(OUTPUT)PERF-CFLAGS | 843 | $(OUTPUT)util/%-flex.o: $(OUTPUT)util/%-flex.c $(OUTPUT)PERF-CFLAGS |
844 | $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -Iutil/ -w $< | 844 | $(QUIET_CC)$(CC) -o $@ -c -Iutil/ $(ALL_CFLAGS) -w $< |
845 | 845 | ||
846 | $(OUTPUT)util/%-bison.o: $(OUTPUT)util/%-bison.c $(OUTPUT)PERF-CFLAGS | 846 | $(OUTPUT)util/%-bison.o: $(OUTPUT)util/%-bison.c $(OUTPUT)PERF-CFLAGS |
847 | $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -Iutil/ -w $< | 847 | $(QUIET_CC)$(CC) -o $@ -c -Iutil/ $(ALL_CFLAGS) -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w $< |
848 | 848 | ||
849 | $(OUTPUT)%.o: %.c $(OUTPUT)PERF-CFLAGS | 849 | $(OUTPUT)%.o: %.c $(OUTPUT)PERF-CFLAGS |
850 | $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $< | 850 | $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $< |