Do not hardcode ar

On Exherbo, ar is prefixed by the target triple.
This commit is contained in:
Niels Ole Salscheider 2015-05-23 19:51:58 +02:00
parent dd9688cf12
commit 580d9b7ed8

View File

@ -6,7 +6,7 @@ OBJS= \
CC ?= cc CC ?= cc
CFLAGS += $(MYCFLAGS) -DLUASOCKET_DEBUG CFLAGS += $(MYCFLAGS) -DLUASOCKET_DEBUG
AR := ar rcu AR ?= ar
RANLIB ?= ranlib RANLIB ?= ranlib
.PHONY: all clean .PHONY: all clean
@ -14,7 +14,7 @@ RANLIB ?= ranlib
all: libluasocket.a all: libluasocket.a
libluasocket.a: $(OBJS) libluasocket.a: $(OBJS)
$(AR) $@ $(OBJS) $(AR) rcu $@ $(OBJS)
$(RANLIB) $@ $(RANLIB) $@
clean: clean: