diff options
author | alanminko <37236958+alanminko@users.noreply.github.com> | 2020-04-30 14:22:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-30 14:22:57 -0700 |
commit | 54763e6882fc88d12fadfcd7df1b40d52b8f9beb (patch) | |
tree | aa76c1ccd56cf24ba6266c09aa1a53a4b864d4c9 | |
parent | 8de27b691b86556e5fa5167f87b00399ff9e028e (diff) | |
parent | 128ba6ebc5ec210cd9660f3f032f9a555dc79ec6 (diff) | |
download | abc-54763e6882fc88d12fadfcd7df1b40d52b8f9beb.tar.gz abc-54763e6882fc88d12fadfcd7df1b40d52b8f9beb.tar.bz2 abc-54763e6882fc88d12fadfcd7df1b40d52b8f9beb.zip |
Merge pull request #58 from whitequark/patch-2
Allow changing the `ar` binary
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,6 +1,7 @@ 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 $@) |