summarylogtreecommitdiffstats
path: root/honor-archlinux-compiler-flags.patch
blob: b958af806b06652d660f8e046ae591d322ea5baa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
diff --git a/Makefile b/Makefile
index 8cdc9ed..b37f051 100644
--- a/Makefile
+++ b/Makefile
@@ -193,17 +193,17 @@ clean:
 	fi
 
 $(BUILD)/corefreqm.o: $(HW)/corefreqm.c
-	$(CC) $(OPTIM_FLG) $(WARNING) -c $(HW)/corefreqm.c \
+	$(CC) $(CFLAGS) $(LDFLAGS) -c $(HW)/corefreqm.c \
 	  $(DEFINITIONS) \
 	  -o $(BUILD)/corefreqm.o
 
 $(BUILD)/corefreqd.o: $(HW)/corefreqd.c
-	$(CC) $(OPTIM_FLG) $(WARNING) -pthread -c $(HW)/corefreqd.c \
+	$(CC) $(CFLAGS) $(LDFLAGS) -pthread -c $(HW)/corefreqd.c \
 	  $(DEFINITIONS) \
 	  -o $(BUILD)/corefreqd.o
 
 $(BUILD)/corefreqd: $(BUILD)/corefreqd.o $(BUILD)/corefreqm.o
-	$(CC) $(OPTIM_FLG) $(WARNING) $(HW)/corefreqd.c $(HW)/corefreqm.c \
+	$(CC) $(CFLAGS) $(LDFLAGS) $(HW)/corefreqd.c $(HW)/corefreqm.c \
 	  $(DEFINITIONS) \
 	  -o $(BUILD)/corefreqd -lpthread -lm -lrt
 
@@ -211,27 +211,27 @@ $(BUILD)/corefreqd: $(BUILD)/corefreqd.o $(BUILD)/corefreqm.o
 corefreqd: $(BUILD)/corefreqd
 
 $(BUILD)/corefreq-ui.o: $(HW)/corefreq-ui.c
-	$(CC) $(OPTIM_FLG) $(WARNING) -c $(HW)/corefreq-ui.c \
+	$(CC) $(CFLAGS) $(LDFLAGS) -c $(HW)/corefreq-ui.c \
 	  $(DEFINITIONS) \
 	  -o $(BUILD)/corefreq-ui.o
 
 $(BUILD)/corefreq-cli.o: $(HW)/corefreq-cli.c
-	$(CC) $(OPTIM_FLG) $(WARNING) -c $(HW)/corefreq-cli.c \
+	$(CC) $(CFLAGS) $(LDFLAGS) -c $(HW)/corefreq-cli.c \
 	  $(DEFINITIONS) $(LAYOUT) \
 	  -o $(BUILD)/corefreq-cli.o
 
 $(BUILD)/corefreq-cli-rsc.o: $(HW)/corefreq-cli-rsc.c
-	$(CC) $(OPTIM_FLG) $(WARNING) -c $(HW)/corefreq-cli-rsc.c \
+	$(CC) $(CFLAGS) $(LDFLAGS) -c $(HW)/corefreq-cli-rsc.c \
 	  $(DEFINITIONS) $(LAYOUT) \
 	  -o $(BUILD)/corefreq-cli-rsc.o
 
 $(BUILD)/corefreq-cli-json.o: $(HW)/corefreq-cli-json.c
-	$(CC) $(OPTIM_FLG) $(WARNING) -c $(HW)/corefreq-cli-json.c \
+	$(CC) $(CFLAGS) $(LDFLAGS) -c $(HW)/corefreq-cli-json.c \
 	  $(DEFINITIONS) \
 	  -o $(BUILD)/corefreq-cli-json.o
 
 $(BUILD)/corefreq-cli-extra.o: $(HW)/corefreq-cli-extra.c
-	$(CC) $(OPTIM_FLG) $(WARNING) -c $(HW)/corefreq-cli-extra.c \
+	$(CC) $(CFLAGS) $(LDFLAGS) -c $(HW)/corefreq-cli-extra.c \
 	  $(DEFINITIONS) \
 	  -o $(BUILD)/corefreq-cli-extra.o
 
@@ -240,7 +240,7 @@ $(BUILD)/corefreq-cli:	$(BUILD)/corefreq-cli.o \
 			$(BUILD)/corefreq-cli-rsc.o \
 			$(BUILD)/corefreq-cli-json.o \
 			$(BUILD)/corefreq-cli-extra.o
-	$(CC) $(OPTIM_FLG) $(WARNING) \
+	$(CC) $(CFLAGS) $(LDFLAGS) \
 	  $(HW)/corefreq-cli.c $(HW)/corefreq-ui.c $(HW)/corefreq-cli-rsc.c \
 	  $(HW)/corefreq-cli-json.c $(HW)/corefreq-cli-extra.c \
 	  $(DEFINITIONS) $(LAYOUT) \