summarylogtreecommitdiffstats
path: root/honor-archlinux-compiler-flags.patch
blob: 2ebfa558adbe53de1996af3388c00d6e1b7acd27 (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
diff --git a/Makefile b/Makefile
index 0601f48..0dc3922 100644
--- a/Makefile
+++ b/Makefile
@@ -91,48 +91,48 @@ clean:
 	$(MAKE) -j1 -C $(KERNELDIR) M=$(PWD) clean
 
 corefreqm.o: corefreqm.c
-	$(CC) $(OPTIM_FLG) $(WARNING) -c corefreqm.c \
+	$(CC)  $(CFLAGS) $(LDFLAGS) -c corefreqm.c \
 	  $(DEFINITIONS) \
 	  -o corefreqm.o
 
 corefreqd.o: corefreqd.c
-	$(CC) $(OPTIM_FLG) $(WARNING) -pthread -c corefreqd.c \
+	$(CC) $(CFLAGS) $(LDFLAGS) -pthread -c corefreqd.c \
 	  $(DEFINITIONS) \
 	  -o corefreqd.o
 
 corefreqd: corefreqd.o corefreqm.o
-	$(CC) $(OPTIM_FLG) $(WARNING) corefreqd.c corefreqm.c \
+	$(CC) $(CFLAGS) $(LDFLAGS) corefreqd.c corefreqm.c \
 	  $(DEFINITIONS) \
 	  -o corefreqd -lpthread -lm -lrt
 
 corefreq-ui.o: corefreq-ui.c
-	$(CC) $(OPTIM_FLG) $(WARNING) -c corefreq-ui.c \
+	$(CC) $(CFLAGS) $(LDFLAGS) -c corefreq-ui.c \
 	  $(DEFINITIONS) \
 	  -o corefreq-ui.o
 
 corefreq-cli.o: corefreq-cli.c
-	$(CC) $(OPTIM_FLG) $(WARNING) -c corefreq-cli.c \
+	$(CC) $(CFLAGS) $(LDFLAGS) -c corefreq-cli.c \
 	  $(DEFINITIONS) $(LAYOUT) \
 	  -o corefreq-cli.o
 
 corefreq-cli-rsc.o: corefreq-cli-rsc.c
-	$(CC) $(OPTIM_FLG) $(WARNING) -c corefreq-cli-rsc.c \
+	$(CC) $(CFLAGS) $(LDFLAGS) -c corefreq-cli-rsc.c \
 	  $(DEFINITIONS) $(LAYOUT) \
 	  -o corefreq-cli-rsc.o
 
 corefreq-cli-json.o: corefreq-cli-json.c
-	$(CC) $(OPTIM_FLG) $(WARNING) -c corefreq-cli-json.c \
+	$(CC) $(CFLAGS) $(LDFLAGS) -c corefreq-cli-json.c \
 	  $(DEFINITIONS) \
 	  -o corefreq-cli-json.o
 
 corefreq-cli-extra.o: corefreq-cli-extra.c
-	$(CC) $(OPTIM_FLG) $(WARNING) -c corefreq-cli-extra.c \
+	$(CC) $(CFLAGS) $(LDFLAGS) -c corefreq-cli-extra.c \
 	  $(DEFINITIONS) \
 	  -o corefreq-cli-extra.o
 
 corefreq-cli: corefreq-cli.o corefreq-ui.o corefreq-cli-rsc.o \
 		corefreq-cli-json.o corefreq-cli-extra.o
-	$(CC) $(OPTIM_FLG) $(WARNING) \
+	$(CC) $(CFLAGS) $(LDFLAGS) \
 	  corefreq-cli.c corefreq-ui.c corefreq-cli-rsc.c \
 	  corefreq-cli-json.c corefreq-cli-extra.c \
 	  $(DEFINITIONS) $(LAYOUT) \