Merge pull request #145 from baloo/baloo/fixup-ar

autoconf: allow a user to override ar
This commit is contained in:
Joe Thornber
2020-07-27 15:57:48 +01:00
committed by GitHub
4 changed files with 7 additions and 5 deletions

View File

@@ -187,6 +187,7 @@ ifeq ("@STATIC@", "yes")
LDFLAGS+=-static
endif
AR:=@AR@
INSTALL:=@INSTALL@
PREFIX:=@prefix@
BINDIR:=$(DESTDIR)$(PREFIX)/sbin
@@ -236,7 +237,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] $@"