Root/frotz/patches/001-change-strip-to-variable.patch

1change the strip to $(STRIP).
2
3From: Xiangfu Liu <xiangfu@sharism.cc>
4
5when cross compile we need use cross comppile strip.
6
7Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
8---
9 Makefile | 6 +++---
10 1 files changed, 3 insertions(+), 3 deletions(-)
11
12diff --git a/Makefile b/Makefile
13index 3e1253a..aae3eaa 100644
14--- a/Makefile
15+++ b/Makefile
16@@ -3,6 +3,7 @@
17 #
18 CC = gcc
19 #CC = cc
20+STRIP = strip
21 
22 # Define your optimization flags. Most compilers understand -O and -O2,
23 # Standard (note: Solaris on UltraSparc using gcc 2.8.x might not like this.)
24@@ -213,7 +214,7 @@ soundcard.h:
25     fi
26 
27 install: $(NAME)
28- strip $(BINNAME)$(EXTENSION)
29+ $(STRIP) $(BINNAME)$(EXTENSION)
30     install -d $(PREFIX)/bin
31     install -d $(MAN_PREFIX)/man/man6
32     install -c -m 755 $(BINNAME)$(EXTENSION) $(PREFIX)/bin
33@@ -226,7 +227,7 @@ uninstall:
34 deinstall: uninstall
35 
36 install_dumb: d$(NAME)
37- strip d$(BINNAME)$(EXTENSION)
38+ $(STRIP) d$(BINNAME)$(EXTENSION)
39     install -d $(PREFIX)/bin
40     install -d $(MAN_PREFIX)/man/man6
41     install -c -m 755 d$(BINNAME)$(EXTENSION) $(PREFIX)/bin
42@@ -264,7 +265,6 @@ distclean: clean
43     rm -f *core $(SRCDIR)/*core
44     -rm -rf $(distdir)
45     -rm -f $(distdir).tar $(distdir).tar.gz
46-
47 realclean: distclean
48 
49 clobber: distclean
50

Archive Download this file



interactive