ruby-changes:53551
From: nobu <ko1@a...>
Date: Fri, 16 Nov 2018 16:09:03 +0900 (JST)
Subject: [ruby-changes:53551] nobu:r65767 (trunk): common.mk: hack to export symbols for MJIT in ruby.imp
nobu 2018-11-16 16:08:58 +0900 (Fri, 16 Nov 2018) New Revision: 65767 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65767 Log: common.mk: hack to export symbols for MJIT in ruby.imp Modified files: trunk/common.mk Index: common.mk =================================================================== --- common.mk (revision 65766) +++ common.mk (revision 65767) @@ -343,8 +343,12 @@ $(STATIC_RUBY)$(EXEEXT): $(MAINOBJ) $(DL https://github.com/ruby/ruby/blob/trunk/common.mk#L343 $(PURIFY) $(CC) $(MAINOBJ) $(DLDOBJS) $(LIBRUBY_A) $(MAINLIBS) $(EXTLIBS) $(LIBS) $(OUTFLAG)$@ $(LDFLAGS) $(XLDFLAGS) ruby.imp: $(COMMONOBJS) - $(Q)$(NM) -Pgp $(COMMONOBJS) | \ - awk 'BEGIN{print "#!"}; $$2~/^[BDT]$$/&&$$1!~/^_?(Init_|InitVM_|ruby_static_id_|.*_threadptr_|rb_ec_)|^\./{print $$1}' | \ + $(Q){ \ + $(NM) -Pgp $(COMMONOBJS) | \ + awk 'BEGIN{print "#!"}; $$2~/^[BDT]$$/&&$$1!~/^$(SYMBOL_PREFIX)(Init_|InitVM_|ruby_static_id_|.*_threadptr_|rb_ec_)|^\./{print $$1}'; \ + ($(CHDIR) $(srcdir) && exec grep -h -A1 ^MJIT_FUNC_EXPORTED cont.c gc.c thread*.c vm*.c) | \ + grep -e ^rb_ec_ -e ^rb_threadptr_ | sed 's/^\(rb_[a-zA-Z_0-9]*\).*/$(SYMBOL_PREFIX)\1/'; \ + } | \ sort -u -o $@ install: install-$(INSTALLDOC) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/