diff options
Diffstat (limited to 'meta/recipes-kernel/latencytop/latencytop-0.5/latencytop-makefile.patch')
-rw-r--r-- | meta/recipes-kernel/latencytop/latencytop-0.5/latencytop-makefile.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-kernel/latencytop/latencytop-0.5/latencytop-makefile.patch b/meta/recipes-kernel/latencytop/latencytop-0.5/latencytop-makefile.patch new file mode 100644 index 0000000000..0cf217fa0b --- /dev/null +++ b/meta/recipes-kernel/latencytop/latencytop-0.5/latencytop-makefile.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | diff --git a/Makefile.orig b/Makefile | ||
2 | index 16a2369..fa797a2 100644 | ||
3 | --- a/Makefile.orig | ||
4 | +++ b/Makefile | ||
5 | @@ -1,10 +1,11 @@ | ||
6 | -# FIXME: Use autoconf ? | ||
7 | -HAS_GTK_GUI = 1 | ||
8 | +# Upstream-Status: Inappropriate [configuration] | ||
9 | +# Signed-off-by: Jack Mitchell <jack.mitchell@dbbroadcast.co.uk> | ||
10 | |||
11 | DESTDIR = | ||
12 | SBINDIR = /usr/sbin | ||
13 | XCFLAGS = -W -g `pkg-config --cflags glib-2.0` -D_FORTIFY_SOURCE=2 -Wno-sign-compare | ||
14 | -LDF = -Wl,--as-needed `pkg-config --libs glib-2.0` -lncursesw | ||
15 | +LDF = -Wl,--as-needed `pkg-config --libs glib-2.0` -lncurses | ||
16 | +CC ?= gcc | ||
17 | |||
18 | OBJS= latencytop.o text_display.o translate.o fsync.o | ||
19 | |||
20 | @@ -26,16 +27,17 @@ endif | ||
21 | |||
22 | # We write explicity this "implicit rule" | ||
23 | %.o : %.c | ||
24 | - gcc -c $(CFLAGS) $(XCFLAGS) $< -o $@ | ||
25 | + $(CC) -c $(CFLAGS) $(XCFLAGS) $< -o $@ | ||
26 | |||
27 | latencytop: $(OBJS) latencytop.h Makefile | ||
28 | - gcc $(CFLAGS) $(OBJS) $(LDF) -o latencytop | ||
29 | + $(CC) $(CFLAGS) $(OBJS) $(LDF) -o latencytop | ||
30 | |||
31 | clean: | ||
32 | rm -f *~ latencytop DEADJOE *.o | ||
33 | |||
34 | install: latencytop | ||
35 | mkdir -p $(DESTDIR)/usr/share/latencytop | ||
36 | + mkdir -p $(DESTDIR)/$(SBINDIR) | ||
37 | install -m 0644 latencytop.trans $(DESTDIR)/usr/share/latencytop/latencytop.trans | ||
38 | install -m 0644 *.png $(DESTDIR)/usr/share/latencytop/ | ||
39 | install -m 0755 latencytop $(DESTDIR)$(SBINDIR)/ | ||