Unverified Commit 54763e68 by alanminko Committed by GitHub

Merge pull request #58 from whitequark/patch-2

Allow changing the `ar` binary
parents 8de27b69 128ba6eb
CC := gcc
CXX := g++
AR := ar
LD := $(CXX)
MSG_PREFIX ?=
......@@ -8,6 +9,7 @@ ABCSRC = .
$(info $(MSG_PREFIX)Using CC=$(CC))
$(info $(MSG_PREFIX)Using CXX=$(CXX))
$(info $(MSG_PREFIX)Using AR=$(AR))
$(info $(MSG_PREFIX)Using LD=$(LD))
PROG := abc
......@@ -215,8 +217,7 @@ $(PROG): $(OBJ)
lib$(PROG).a: $(LIBOBJ)
@echo "$(MSG_PREFIX)\`\` Linking:" $(notdir $@)
$(VERBOSE)ar rv $@ $?
$(VERBOSE)ranlib $@
$(VERBOSE)$(AR) rsv $@ $?
lib$(PROG).so: $(LIBOBJ)
@echo "$(MSG_PREFIX)\`\` Linking:" $(notdir $@)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment