summaryrefslogtreecommitdiffstats
path: root/patches/latencytop-0.5/repair-cross-compile.patch
blob: 542c7c44b339894899094b274bd58e9c77e7e1f9 (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
Adapt the Makefile for Cross-compilation

Signed-off-by: Remy Bohmer <linux@bohmer.net>
---
 Makefile |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Index: latencytop-0.5/Makefile
===================================================================
--- latencytop-0.5.orig/Makefile
+++ latencytop-0.5/Makefile
@@ -26,14 +26,16 @@ endif
 
 # We write explicity this "implicit rule"
 %.o : %.c
-	gcc -c $(CFLAGS) $(XCFLAGS) $< -o $@
+	$(CC) -c $(CFLAGS) $(CPPFLAGS) $(XCFLAGS) $< -o $@
 
 latencytop:  $(OBJS) latencytop.h Makefile
-	gcc $(CFLAGS) $(OBJS) $(LDF) -o latencytop 
+	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LDF) -o latencytop
 
+.PHONY: clean
 clean:
 	rm -f *~ latencytop DEADJOE *.o
 
+.PHONY: install
 install: latencytop
 	mkdir -p $(DESTDIR)/usr/share/latencytop
 	install -m 0644 latencytop.trans $(DESTDIR)/usr/share/latencytop/latencytop.trans