Skip to content
Snippets Groups Projects
Commit 0bb4c6a8 authored by Simon Marlow's avatar Simon Marlow
Browse files

remove $(LIB) before calling ar

parent 82b08811
No related merge requests found
......@@ -23,6 +23,8 @@ C_OBJS = $(patsubst %.c,$(odir)/%.$(osuf),$(C_SRCS))
LIB = $(odir)/libHS$(package)$(_way).a
RM = rm -f
# Optionally include local customizations:
-include Makefile.local
......@@ -44,9 +46,11 @@ include .depend
ifneq "$(filter -split-objs, $(GHC_OPTS))" ""
$(LIB) : $(HS_OBJS) $(C_OBJS)
@$(RM) $@
(echo $(C_OBJS) `$(MKSTUBOBJS)`; find $(patsubst %.$(osuf),%_split,$(HS_OBJS)) -name '*.$(way_)o' -print) | xargs -s 30000 $(AR) q $(EXTRA_AR_ARGS) $@
else
$(LIB) : $(HS_OBJS) $(C_OBJS)
@$(RM) $@
echo $(C_OBJS) $(HS_OBJS) `$(MKSTUBOBJS)` | xargs -s 30000 $(AR) q $(EXTRA_AR_ARGS) $@
endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment