[ruby-cvs:62428] nobu:r55265 (trunk): mkmf.rb: sort lists of source and object files

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Jun 3 17:44:27 JST 2016


nobu	2016-06-03 17:44:27 +0900 (Fri, 03 Jun 2016)

  New Revision: 55265

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

  Log:
    mkmf.rb: sort lists of source and object files
    
    * lib/mkmf.rb (create_makefile): sort lists of source and object
      files in generated Makefile, unless given by extconf.rb.
      [Fix GH-1367]
    
    Without sorting the list of object files explicitely, its order is
    indeterministic, because readdir() is also not deterministic.
    When the list of object files varies between builds, they are
    linked in a different order, which results in an unreproducible
    build.

  Modified files:
    trunk/ChangeLog
    trunk/lib/mkmf.rb


More information about the ruby-cvs mailing list