summaryrefslogtreecommitdiff
path: root/frotz/patches/001-change-strip-to-variable.patch
blob: 69fa55f4f7beb72606b3be495637e73926da6a1a (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
change the strip to $(STRIP).

From: Xiangfu Liu <xiangfu@sharism.cc>

when cross compile we need use cross comppile strip.

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
---
 Makefile |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 3e1253a..aae3eaa 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@
 #
 CC = gcc
 #CC = cc
+STRIP = strip
 
 # Define your optimization flags.  Most compilers understand -O and -O2,
 # Standard (note: Solaris on UltraSparc using gcc 2.8.x might not like this.)
@@ -213,7 +214,7 @@ soundcard.h:
 	fi
 
 install: $(NAME)
-	strip $(BINNAME)$(EXTENSION)
+	$(STRIP) $(BINNAME)$(EXTENSION)
 	install -d $(PREFIX)/bin
 	install -d $(MAN_PREFIX)/man/man6
 	install -c -m 755 $(BINNAME)$(EXTENSION) $(PREFIX)/bin
@@ -226,7 +227,7 @@ uninstall:
 deinstall: uninstall
 
 install_dumb: d$(NAME)
-	strip d$(BINNAME)$(EXTENSION)
+	$(STRIP) d$(BINNAME)$(EXTENSION)
 	install -d $(PREFIX)/bin
 	install -d $(MAN_PREFIX)/man/man6
 	install -c -m 755 d$(BINNAME)$(EXTENSION) $(PREFIX)/bin
@@ -264,7 +265,6 @@ distclean: clean
 	rm -f *core $(SRCDIR)/*core
 	-rm -rf $(distdir)
 	-rm -f $(distdir).tar $(distdir).tar.gz
-	
 realclean: distclean
 
 clobber: distclean