Kyle McMartin bb584d
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
Kyle McMartin bb584d
index 802cf54..7f30bfa 100644
Kyle McMartin bb584d
--- a/tools/perf/config/Makefile
Kyle McMartin bb584d
+++ b/tools/perf/config/Makefile
Kyle McMartin bb584d
@@ -621,8 +621,12 @@ endif
Kyle McMartin bb584d
 ifeq ($(IS_X86_64),1)
Kyle McMartin bb584d
 lib = lib64
Kyle McMartin bb584d
 else
Kyle McMartin bb584d
+ifdef MULTILIBDIR
Kyle McMartin bb584d
+lib = $(MULTILIBDIR)
Kyle McMartin bb584d
+else
Kyle McMartin bb584d
 lib = lib
Kyle McMartin bb584d
 endif
Kyle McMartin bb584d
+endif
Kyle McMartin bb584d
 libdir = $(prefix)/$(lib)
Kyle McMartin bb584d
Kyle McMartin bb584d
 # Shell quote (do not use $(call) to accommodate ancient setups);