hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/tools/power/x86/turbostat/Makefile
....@@ -9,13 +9,15 @@
99 endif
1010
1111 turbostat : turbostat.c
12
-CFLAGS += -Wall -I../../../include
13
-CFLAGS += -DMSRHEADER='"../../../../arch/x86/include/asm/msr-index.h"'
14
-CFLAGS += -DINTEL_FAMILY_HEADER='"../../../../arch/x86/include/asm/intel-family.h"'
12
+override CFLAGS += -O2 -Wall -I../../../include
13
+override CFLAGS += -DMSRHEADER='"../../../../arch/x86/include/asm/msr-index.h"'
14
+override CFLAGS += -DINTEL_FAMILY_HEADER='"../../../../arch/x86/include/asm/intel-family.h"'
15
+override CFLAGS += -D_FILE_OFFSET_BITS=64
16
+override CFLAGS += -D_FORTIFY_SOURCE=2
1517
1618 %: %.c
1719 @mkdir -p $(BUILD_OUTPUT)
18
- $(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@
20
+ $(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@ $(LDFLAGS) -lcap -lrt
1921
2022 .PHONY : clean
2123 clean :