autoconf: allow a user to override ar

This is used on specific buildchains (nixos static builds for example).
This commit is contained in:
Arthur Gautier
2020-07-25 15:04:18 -07:00
parent e9055f5d7d
commit e6faac9b80
4 changed files with 7 additions and 5 deletions

View File

@@ -185,6 +185,7 @@ ifeq ("@STATIC@", "yes")
LDFLAGS+=-static
endif
AR:=@AR@
INSTALL:=@INSTALL@
PREFIX:=@prefix@
BINDIR:=$(DESTDIR)$(PREFIX)/sbin
@@ -234,7 +235,7 @@ endif
lib/libpdata.a: $(OBJECTS) $(EMITTERS)
@echo " [AR] $<"
@mkdir -p $(dir $@)
$(V)ar -rv $@ $(OBJECTS) $(EMITTERS) > /dev/null 2>&1
$(V)$(AR) -rv $@ $(OBJECTS) $(EMITTERS) > /dev/null 2>&1
bin/pdata_tools: $(OBJECTS) $(EMITTERS)
@echo " [LD] $@"