summaryrefslogtreecommitdiff
path: root/sys-power/pmtools/files/pmtools-20101124-cflags-ldflags.patch
blob: 0ae69e8c46d443e4fa698e67316233211140b5b2 (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
diff -Nuar pmtools-20100123.orig/acpidump/Makefile pmtools-20100123/acpidump/Makefile
--- pmtools-20100123.orig/acpidump/Makefile	2006-11-30 13:41:15.000000000 +0100
+++ pmtools-20100123/acpidump/Makefile	2010-03-07 14:19:12.337141824 +0100
@@ -1,11 +1,11 @@
 PROG= acpidump
 SRCS=	acpidump.c
 KERNEL_INCLUDE := ../include
-CFLAGS += -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Os -s -D_LINUX -DDEFINE_ALTERNATE_TYPES -I$(KERNEL_INCLUDE) 
+CFLAGS += -Wall -Wstrict-prototypes -Wdeclaration-after-statement -D_LINUX -DDEFINE_ALTERNATE_TYPES -I$(KERNEL_INCLUDE) 
 
 all: acpidump
 $(PROG) : $(SRCS)
-	$(CC) $(CFLAGS) $(SRCS) -o $(PROG)
+	$(CC) $(CFLAGS) $(LDFLAGS) $(SRCS) -o $(PROG)
 
 CLEANFILES= $(PROG)
 
diff -Nuar pmtools-20100123.orig/acpixtract/Makefile pmtools-20100123/acpixtract/Makefile
--- pmtools-20100123.orig/acpixtract/Makefile	2006-11-30 13:45:06.000000000 +0100
+++ pmtools-20100123/acpixtract/Makefile	2010-03-07 14:19:12.337141824 +0100
@@ -6,7 +6,7 @@
 all: $(PROG)
 
 $(PROG) : $(SRCS)
-	$(CC) $(CFLAGS) $(SRCS) -o $(PROG)
+	$(CC) $(CFLAGS) $(LDFLAGS) $(SRCS) -o $(PROG)
 
 CLEANFILES= $(PROG)
 
diff -Nuar pmtools-20100123.orig/madt/Makefile pmtools-20100123/madt/Makefile
--- pmtools-20100123.orig/madt/Makefile	2005-11-11 18:07:04.000000000 +0100
+++ pmtools-20100123/madt/Makefile	2010-03-07 14:22:15.199017246 +0100
@@ -1,6 +1,6 @@
 test: madt
 	./madt < APIC
 madt: madt.c acpi.h tables.c
-	cc -o madt madt.c
+	$(CC) $(CFLAGS) $(LDFLAGS) madt.c -o madt
 clean:
 	rm madt
--- pmtools-20101124.orig/turbostat/Makefile.old	2010-11-27 22:13:00.405571001 +0100
+++ pmtools-20101124/turbostat/Makefile	2010-11-27 22:16:39.070571001 +0100
@@ -1,3 +1,5 @@
+all : turbostat
+
 turbostat : turbostat.c
 
 clean :