summaryrefslogtreecommitdiffstats
path: root/patches/zip-2.32/generic/zip-2.32-assembler-filename.diff
blob: c768b08cb292f422428dd13c0daa2dd03785b417 (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
From: Robert Schwebel <r.schwebel@pengutronix.de>
Subject: zip: fix assembler file name assumption

The Makefile assumes that as outputs _foo.s' object code to foo.o which
is not true with current gcc versions. We fix it to use the -o options
and specify the output name explicitly.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>

---
 unix/Makefile |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Index: zip-2.32/unix/Makefile
===================================================================
--- zip-2.32.orig/unix/Makefile
+++ zip-2.32/unix/Makefile
@@ -89,14 +89,12 @@ zipup.o: unix/zipup.h
 
 match.o: match.S
 	$(CPP) match.S > _match.s
-	$(AS) _match.s
-	mv _match.o match.o
+	$(AS) _match.s -o match.o
 	rm -f _match.s
 
 crc_i386.o: crc_i386.S
 	$(CPP) crc_i386.S > _crc_i386.s
-	$(AS) _crc_i386.s
-	mv _crc_i386.o crc_i386.o
+	$(AS) _crc_i386.s -o crc_i386.o
 	rm -f _crc_i386.s
 
 unix.o: unix/unix.c