summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--template/Makefile.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/template/Makefile.in b/template/Makefile.in
index 28504d5326..acda941639 100644
--- a/template/Makefile.in
+++ b/template/Makefile.in
@@ -311,6 +311,7 @@ $(LIBRUBY_A):
$(ECHO0) 'merging $(YJIT_LIBS) into $@' && \
$(RMALL) libyjit/ && \
$(MAKEDIRS) libyjit/ && \
+ trap "$(RMALL) libyjit/" 0 && \
(cd libyjit/ && $(AR) -x ../$(YJIT_LIBS)) && \
: "$(AR) $(ARFLAGS) $@ libyjit/*.$(OBJEXT)" && \
find libyjit/ -name '*.$(OBJEXT)' -exec $(AR) $(ARFLAGS) $@ '{}' '+' ; \