]> git.sur5r.net Git - openldap/commitdiff
ITS#8168 Allow passing AR to make
authorHeiko Becker <heirecka@exherbo.org>
Thu, 11 Jun 2015 18:44:06 +0000 (20:44 +0200)
committerHoward Chu <hyc@openldap.org>
Tue, 24 Nov 2015 16:03:25 +0000 (16:03 +0000)
This is helpful when the ar executable is named differently, for
example with an arch specific prefix.

libraries/liblmdb/Makefile

index 79752d299588a7d37245e4edf5fec6b59428bcc8..3fdc3a16ca6c4f96797f74497a18bb8c641fb674 100644 (file)
@@ -19,6 +19,7 @@
 # read mdb.c before changing any of them.
 #
 CC     = gcc
+AR     = ar
 W      = -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized
 THREADS = -pthread
 OPT = -O2 -g
@@ -54,7 +55,7 @@ test: all
        ./mtest && ./mdb_stat testdb
 
 liblmdb.a:     mdb.o midl.o
-       ar rs $@ mdb.o midl.o
+       $(AR) rs $@ mdb.o midl.o
 
 liblmdb.so:    mdb.lo midl.lo
 #      $(CC) $(LDFLAGS) -pthread -shared -Wl,-Bsymbolic -o $@ mdb.o midl.o $(SOLIBS)