void-packages/srcpkgs/linux-tools/patches/turbostat.patch
Leah Neukirchen 8851ca272b linux-tools: update to 4.12.
Add tmon and turbostat, fix musl.
2017-08-17 16:33:46 +02:00

20 lines
672 B
Diff

--- tools/power/x86/turbostat/Makefile.orig
+++ tools/power/x86/turbostat/Makefile
@@ -8,13 +8,13 @@
endif
turbostat : turbostat.c
-CFLAGS += -Wall
-CFLAGS += -DMSRHEADER='"../../../../arch/x86/include/asm/msr-index.h"'
-CFLAGS += -DINTEL_FAMILY_HEADER='"../../../../arch/x86/include/asm/intel-family.h"'
+override CFLAGS += -Wall
+override CFLAGS += -DMSRHEADER='"../../../../arch/x86/include/asm/msr-index.h"'
+override CFLAGS += -DINTEL_FAMILY_HEADER='"../../../../arch/x86/include/asm/intel-family.h"'
%: %.c
@mkdir -p $(BUILD_OUTPUT)
- $(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@
+ $(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@ $(LDFLAGS)
.PHONY : clean
clean :