From 3a4fd79cbfe73d049da7e52d36a12ab5d850b5b9 Mon Sep 17 00:00:00 2001 From: Heiko Becker Date: Thu, 11 Jun 2015 20:44:06 +0200 Subject: [PATCH] ITS#8168 Allow passing AR to make This is helpful when the ar executable is named differently, for example with an arch specific prefix. --- libraries/liblmdb/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/liblmdb/Makefile b/libraries/liblmdb/Makefile index 2c3817f..e3daf95 100644 --- a/libraries/liblmdb/Makefile +++ b/libraries/liblmdb/Makefile @@ -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)