summaryrefslogtreecommitdiff
blob: 8a695652fac47b4789d9aa8f25f99e2a9ab000cc (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
50
51
52
53
54
55
56
57
Respect AR, RANLIB

https://bugs.gentoo.org/show_bug.cgi?id=436646

Patch written by Kacper Kowalik <xarthisius@gentoo.org>
--- a/libastro/Makefile
+++ b/libastro/Makefile
@@ -79,8 +79,8 @@ OBJS =			\
 	vsop87_data.o
 
 libastro.a: $(HS) $(OBJS)
-	ar rv $@ $(OBJS)
-	ranlib $@
+	$(AR) rv $@ $(OBJS)
+	$(RANLIB) $@
 
 libastro.so: $(HS) $(OBJS)
 	$(CC) $(LDFLAGS) -shared -o $@ $(OBJS)
--- a/libip/Makefile
+++ b/libip/Makefile
@@ -35,8 +35,8 @@ OBJS =	\
 HS = ip.h fsmatch.h
 
 libip.a: $(HS)	$(OBJS)
-	ar rv $@ $(OBJS)
-	ranlib $@
+	$(AR) rv $@ $(OBJS)
+	$(RANLIB) $@
 
 libip.so:    $(OBJS)
 	$(CC) $(LDFLAGS) -shared -o $@ $(OBJS)
--- a/libjpegd/Makefile
+++ b/libjpegd/Makefile
@@ -62,8 +62,8 @@ OBJS = \
 	jutils.o
 
 libjpegd.a: $(HS) $(OBJS)
-	ar r $@ $(OBJS)
-	ranlib $@
+	$(AR) r $@ $(OBJS)
+	$(RANLIB) $@
 
 clobber:
 	touch x.o x.a
--- a/liblilxml/Makefile
+++ b/liblilxml/Makefile
@@ -24,8 +24,8 @@ HS = lilxml.h
 OBJS = lilxml.o base64.o
 
 liblilxml.a: $(HS) $(OBJS)
-	ar r $@ $(OBJS)
-	ranlib $@
+	$(AR) r $@ $(OBJS)
+	$(RANLIB) $@
 
 liltest: liltest.o liblilxml.a
 	$(CC) $(LDFLAGS) -o liltest liltest.o liblilxml.a