summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/Makefile.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/template/Makefile.in b/template/Makefile.in
index 3cfc745bd5..82ca3480c0 100644
--- a/template/Makefile.in
+++ b/template/Makefile.in
@@ -311,8 +311,7 @@ $(LIBRUBY_A):
echo 'merging $(YJIT_LIBS) into $@' && \
$(RMALL) libyjit/ && \
$(MAKEDIRS) libyjit/ && \
- $(CP) '$(YJIT_LIBS)' libyjit/ && \
- (cd libyjit/ && $(AR) -x libyjit.a) && \
+ (cd libyjit/ && $(AR) -x ../$(YJIT_LIBS)) && \
: "$(AR) $(ARFLAGS) $@ libyjit/*.$(OBJEXT)" && \
find libyjit/ -name '*.$(OBJEXT)' -exec $(AR) $(ARFLAGS) $@ '{}' '+' ; \
fi