aboutsummaryrefslogtreecommitdiffstats
path: root/ext/psych
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-06-01 21:00:27 -0700
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-06-02 07:59:56 +0300
commit06a25344d9944529383cf76e81c8342b8821cf5e (patch)
tree6703e21a94cf3ebcd9a7b713cce83f3b4f2c4248 /ext/psych
parent486a2c26d604ff0e18bae73fe97b95478a44f3d5 (diff)
downloadruby-06a25344d9944529383cf76e81c8342b8821cf5e.tar.gz
Make psych.so deterministic
Fixes Ruby Bug #15890
Diffstat (limited to 'ext/psych')
-rw-r--r--ext/psych/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb
index 6d8390ebe5..00f9982704 100644
--- a/ext/psych/extconf.rb
+++ b/ext/psych/extconf.rb
@@ -13,7 +13,7 @@ if enable_config("bundled-libyaml", false) || !(find_header('yaml.h') && find_li
$VPATH << "$(srcdir)/yaml"
$INCFLAGS << " -I$(srcdir)/yaml"
- $srcs = Dir.glob("#{$srcdir}/{,yaml/}*.c").map {|n| File.basename(n)}
+ $srcs = Dir.glob("#{$srcdir}/{,yaml/}*.c").map {|n| File.basename(n)}.sort
if have_macro("_WIN32")
$CPPFLAGS << " -DYAML_DECLARE_STATIC -DHAVE_CONFIG_H"