lib/mkmf.rb: sort list of object files in generated Makefile
authorReiner Herrmann <reiner@reiner-h.de>
Tue, 10 Oct 2017 18:06:13 +0000 (15:06 -0300)
committerAntonio Terceiro <terceiro@debian.org>
Sat, 30 Dec 2017 13:50:04 +0000 (13:50 +0000)
commit0bbb2214ee0450e33cf3eb814cdb7cb765ac6c46
treed9977800d1adce06e9a1415568e4ec66bf22781b
parent8e7d33e5bc4847b9c5e2ba18ad73c962b33fdad7
lib/mkmf.rb: sort list of object files in generated Makefile

Without sorting the list 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.

Signed-off-by: Antonio Terceiro <terceiro@debian.org>
Signed-off-by: Reiner Herrmann <reiner@reiner-h.de>
Gbp-Pq: Name 0002-lib-mkmf.rb-sort-list-of-object-files-in-generated-M.patch
lib/mkmf.rb