[ruby-cvs:72034] k0kubun:r64942 (trunk): include/ruby/intern.h: don't modify MJIT_FUNC_EXPORTED

k0kubun at ruby-lang.org k0kubun at ruby-lang.org
Sun Oct 7 23:00:04 JST 2018


k0kubun	2018-10-07 23:00:04 +0900 (Sun, 07 Oct 2018)

  New Revision: 64942

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64942

  Log:
    include/ruby/intern.h: don't modify MJIT_FUNC_EXPORTED
    
    on most of platforms except mswin.
    
    Changing it to static was needed for mswin because it doesn't use
    transform_mjit_header, but for platforms that use it, it causes link
    error like:
    
    /usr/bin/ld: /tmp/_ruby_mjit_p21652u0.o: relocation R_X86_64_PC32 against undefined symbol `rb_vm_search_method_slowpath' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: final link failed: Bad value
    collect2: error: ld returned 1 exit status
    
    include/ruby/defines.h: MJIT_FUNC_EXPORTED moved to intern.h

  Modified files:
    trunk/include/ruby/defines.h
    trunk/include/ruby/intern.h


More information about the ruby-cvs mailing list