1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

exts.mk.tmpl: propagate MINIRUBY to enc.mk even though invoking from exts.mk

This is another attempt to fix out-of-src build with
--with-static-linked-ext. The first attempt was
4f1888bda7 but reverted because it broke
out-of-src build from pre-generated sources via `make dist`.
This patch fixes the second trans C source gen, mentioned in the
previous commit message, by passing MINIRUBY as well as when invoking
from common.mk
This commit is contained in:
Yuta Saito 2022-03-07 05:44:57 +00:00
parent b068a53dc9
commit 77f3f8a1d4
Notes: git 2022-03-09 22:43:35 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -305,7 +305,7 @@ configure-ext: $(EXTS_MK)
build-ext: $(EXTS_MK)
$(Q)$(MAKE) -f $(EXTS_MK) $(mflags) libdir="$(libdir)" LIBRUBY_EXTS=$(LIBRUBY_EXTS) \
EXTENCS="$(ENCOBJS)" UPDATE_LIBRARIES=no $(EXTSTATIC)
EXTENCS="$(ENCOBJS)" MINIRUBY="$(MINIRUBY)" UPDATE_LIBRARIES=no $(EXTSTATIC)
$(Q)$(MAKE) $(EXTS_NOTE)
exts-note: $(EXTS_MK)

View file

@ -133,7 +133,7 @@ distclean:
% end
libencs:
$(Q)$(MAKE)<%=mflags%> -f enc.mk V=$(V) $@
$(Q)$(MAKE)<%=mflags%> -f enc.mk V=$(V) MINIRUBY="$(MINIRUBY)" $@
ext/extinit.<%=objext%>:
$(Q)$(MAKE)<%=mflags%> V=$(V) EXTINITS="$(EXTINITS)" $@