Skip to content

Commit

Permalink
Make AR tool configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
ony committed Jul 20, 2015
1 parent 0b0d373 commit a8094aa
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/posix.mak
Expand Up @@ -37,6 +37,7 @@ LDFLAGS=-lm -lstdc++ -lpthread
HOST_CC=g++
#endif
CC=$(HOST_CC)
AR=ar
GIT=git

# Host D compiler for bootstrapping
Expand Down Expand Up @@ -304,16 +305,16 @@ auto-tester-build: dmd checkwhitespace ddmd
.PHONY: auto-tester-build

frontend.a: $(DMD_OBJS)
ar rcs frontend.a $(DMD_OBJS)
$(AR) rcs frontend.a $(DMD_OBJS)

root.a: $(ROOT_OBJS)
ar rcs root.a $(ROOT_OBJS)
$(AR) rcs root.a $(ROOT_OBJS)

glue.a: $(GLUE_OBJS)
ar rcs glue.a $(GLUE_OBJS)
$(AR) rcs glue.a $(GLUE_OBJS)

backend.a: $(BACK_OBJS)
ar rcs backend.a $(BACK_OBJS)
$(AR) rcs backend.a $(BACK_OBJS)

dmd: frontend.a root.a glue.a backend.a
$(HOST_CC) -o dmd $(MODEL_FLAG) frontend.a root.a glue.a backend.a $(LDFLAGS)
Expand Down

0 comments on commit a8094aa

Please sign in to comment.