From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: [PATCH] cpupower Makefile change Date: Fri, 30 Jan 2015 01:13:09 +0100 Message-ID: <2471771.a0lNGTTV6e@vostro.rjw.lan> References: <1419266857.3837604.205784097.7B0DB495@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7Bit Return-path: Received: from v094114.home.net.pl ([79.96.170.134]:63600 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753427AbbA2XuV (ORCPT ); Thu, 29 Jan 2015 18:50:21 -0500 In-Reply-To: <1419266857.3837604.205784097.7B0DB495@webmail.messagingengine.com> Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: sriram@marirs.net.in Cc: linux-pm@vger.kernel.org, trenn@suse.de On Monday, December 22, 2014 10:17:37 PM sriram@marirs.net.in wrote: > 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 That requires an ACK from Thomas for me to apply it. > --- > tools/power/cpupower/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/power/cpupower/Makefile > b/tools/power/cpupower/Makefile > index 2e2ba2e..3ed7c04 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) > -- I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.