summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/perf/config/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
index 033d94114bab..405c1c1e2975 100644
--- a/tools/perf/config/Makefile
+++ b/tools/perf/config/Makefile
@@ -439,11 +439,11 @@ ifdef CSTRACE_PATH
else
CSTRACE_LNX = linux
endif
- ifdef DEBUG
+ ifeq (${DEBUG}, 1)
LIBCSTRACE = -lcstraced_c_api -lcstraced
CSTRACE_LIB_PATH = $(CSTRACE_PATH)/lib/$(CSTRACE_LNX)/dbg
else
- LIBCSTRACE = -lcstrace_c_api -lcstrace
+ LIBCSTRACE = -lcstraced_c_api -lcstraced
CSTRACE_LIB_PATH = $(CSTRACE_PATH)/lib/$(CSTRACE_LNX)/rel
endif
$(call detected,CSTRACE)