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
CFLAGS += $(MYCFLAGS) -DLUASOCKET_DEBUG
AR := ar rcu
AR ?= ar
RANLIB ?= ranlib
.PHONY: all clean
@ -14,7 +14,7 @@ RANLIB ?= ranlib
all: libluasocket.a
libluasocket.a: $(OBJS)
$(AR) $@ $(OBJS)
$(AR) rcu $@ $(OBJS)
$(RANLIB) $@
clean: