aboutsummaryrefslogtreecommitdiffstats
path: root/package/zlib/zlib-arflags.patch
blob: f9dae52be9bc998043d475d96b02fbf3f44c9ca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- zlib-1.2.3/Makefile.in
+++ zlib-1.2.3/Makefile.in
@@ -33,7 +33,8 @@
 SHAREDLIBV=libz.so.1.2.3
 SHAREDLIBM=libz.so.1
 
-AR=ar rc
+AR=ar
+ARFLAGS=rc
 RANLIB=ranlib
 TAR=tar
 SHELL=/bin/sh
@@ -68,7 +69,7 @@
 	fi
 
 libz.a: $(OBJS) $(OBJA)
-	$(AR) $@ $(OBJS) $(OBJA)
+	$(AR) $(ARFLAGS) $@ $(OBJS) $(OBJA)
 	-@ ($(RANLIB) $@ || true) >/dev/null 2>&1
 
 match.o: match.S