aboutsummaryrefslogtreecommitdiffstats
path: root/testing/linux-tools/cpupower-libs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/linux-tools/cpupower-libs.patch')
-rw-r--r--testing/linux-tools/cpupower-libs.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/linux-tools/cpupower-libs.patch b/testing/linux-tools/cpupower-libs.patch
new file mode 100644
index 0000000000..d11fe2e9b9
--- /dev/null
+++ b/testing/linux-tools/cpupower-libs.patch
@@ -0,0 +1,21 @@
+diff --git a/tools/power/cpupower/Makefile b/tools/power/cpupower/Makefile
+index 8358863259c5..fe6d70f9c5fc 100644
+--- a/tools/power/cpupower/Makefile
++++ b/tools/power/cpupower/Makefile
+@@ -54,6 +54,7 @@ export STATIC ?= false
+
+ # Prefix to the directories we're installing to
+ DESTDIR ?=
++LIBINTL_LIBS ?=
+
+ # --- CONFIGURATION END ---
+
+@@ -223,7 +224,7 @@ $(OUTPUT)cpupower: $(UTIL_OBJS) $(OUTPUT)libcpupower.so.$(LIB_MAJ)
+ ifeq ($(strip $(STATIC)),true)
+ $(QUIET) $(CC) $(CFLAGS) $(LDFLAGS) $(UTIL_OBJS) -lrt -lpci -L$(OUTPUT) -o $@
+ else
+- $(QUIET) $(CC) $(CFLAGS) $(LDFLAGS) $(UTIL_OBJS) -lcpupower -lrt -lpci -L$(OUTPUT) -o $@
++ $(QUIET) $(CC) $(CFLAGS) $(LDFLAGS) $(UTIL_OBJS) $(LIBINTL_LIBS) -lcpupower -lrt -lpci -L$(OUTPUT) -o $@
+ endif
+ $(QUIET) $(STRIPCMD) $@
+