summaryrefslogtreecommitdiffstats
path: root/tools/power
diff options
context:
space:
mode:
authorsriram@marirs.net.in <sriram@marirs.net.in>2014-12-22 17:47:37 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-01-30 01:47:41 +0100
commit5c1de006e8e66b0be05be422416629e344c71652 (patch)
tree1a0150a191b56470e5618a2e5e4d4b9cbf12b7e4 /tools/power
parentLinux 3.19-rc6 (diff)
downloadlinux-5c1de006e8e66b0be05be422416629e344c71652.tar.xz
linux-5c1de006e8e66b0be05be422416629e344c71652.zip
cpupower Makefile change to help run the tool without 'make install'
The cpupower tool, when compiled against libcpupower.so fail's to run as the linker file path's are missing during compilation. So added changes in the Makefile to run cpupower tool, which helps us run the tool without doing a 'make install'. Signed-off-by: Sriram Raghunathan <sriram@marirs.net.in> Acked-by: Thomas Renninger <trenn@suse.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/power')
-rw-r--r--tools/power/cpupower/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/cpupower/Makefile b/tools/power/cpupower/Makefile
index 2e2ba2efa0d9..3ed7c0476d48 100644
--- a/tools/power/cpupower/Makefile
+++ b/tools/power/cpupower/Makefile
@@ -209,7 +209,7 @@ $(OUTPUT)%.o: %.c
$(OUTPUT)cpupower: $(UTIL_OBJS) $(OUTPUT)libcpupower.so.$(LIB_MAJ)
$(ECHO) " CC " $@
- $(QUIET) $(CC) $(CFLAGS) $(LDFLAGS) $(UTIL_OBJS) -lcpupower -lrt -lpci -L$(OUTPUT) -o $@
+ $(QUIET) $(CC) $(CFLAGS) $(LDFLAGS) $(UTIL_OBJS) -lcpupower -Wl,-rpath=./ -lrt -lpci -L$(OUTPUT) -o $@
$(QUIET) $(STRIPCMD) $@
$(OUTPUT)po/$(PACKAGE).pot: $(UTIL_SRC)