Skip to contentSkip to conversation

perf: Makefile: trivial build fix

PATCH In review David Ahern 1 participant 2 messages Jun 12, 2012 – Jun 29, 2012 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf: Makefile: trivial build fix

References to OUTPUT should not be followed by a '/'. When a build output directory is not specified for this case you get:

gcc -o builtin-annotate.o -c ... -I/util ...

which is wrong.

---
 tools/perf/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/Makefile +1 -1
index 0eee64c..39f7574 100644
@@ -155,7 +155,7 @@ endif
 
 ### --- END CONFIGURATION SECTION ---
 
-BASIC_CFLAGS = -Iutil/include -Iarch/$(ARCH)/include -I$(OUTPUT)/util -I$(TRACE_EVENT_DIR) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
+BASIC_CFLAGS = -Iutil/include -Iarch/$(ARCH)/include -I$(OUTPUT)util -I$(TRACE_EVENT_DIR) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
 BASIC_LDFLAGS =
 
 # Guard against environment variables
Signature · 1 line
1.7.10.1
#1 lore raw

[tip:perf/core] perf tools: Trivial build fix

Commit-ID:  d9873ab79376d5c0112ed09e14783067dc65e808
Gitweb:     http://git.kernel.org/tip/d9873ab79376d5c0112ed09e14783067dc65e808
Author:     David Ahern <[email protected]>
AuthorDate: Mon, 11 Jun 2012 19:13:32 -0600
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Wed, 27 Jun 2012 13:32:06 -0300

perf tools: Trivial build fix

References to OUTPUT should not be followed by a '/'. When a build output directory is not specified for this case you get:

gcc -o builtin-annotate.o -c ... -I/util ...

which is wrong.

---
 tools/perf/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/perf/Makefile +1 -1
index d698c11..75d74e5 100644
@@ -155,7 +155,7 @@ endif
 
 ### --- END CONFIGURATION SECTION ---
 
-BASIC_CFLAGS = -Iutil/include -Iarch/$(ARCH)/include -I$(OUTPUT)/util -I$(TRACE_EVENT_DIR) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
+BASIC_CFLAGS = -Iutil/include -Iarch/$(ARCH)/include -I$(OUTPUT)util -I$(TRACE_EVENT_DIR) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
 BASIC_LDFLAGS =
 
 # Guard against environment variables