diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-16 07:08:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-16 07:08:58 +0000 |
commit | 3c7852f801ac7c488f42c632ce87e327b993a833 (patch) | |
tree | 0b998925a2c33d781576da7da832c5264ab61aed /common.mk | |
parent | e2074a359e928091b5b27743dbfc55018f01cbba (diff) | |
download | ruby-3c7852f801ac7c488f42c632ce87e327b993a833.tar.gz |
common.mk: hack to export symbols for MJIT in ruby.imp
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r-- | common.mk | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -343,8 +343,12 @@ $(STATIC_RUBY)$(EXEEXT): $(MAINOBJ) $(DLDOBJS) $(EXTOBJS) $(LIBRUBY_A) $(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) |