diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-20 10:30:42 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-20 10:30:42 +0000 |
commit | e05e77fd6de19800442c613b2a4e6488339111fb (patch) | |
tree | d591dbe6d85428d7409e68d969994bfdf212fa27 /ext | |
parent | 26f53214a8d4d79d21e3f5c1f343dcdf7a8c99ca (diff) |
Retry r65211.
* Maybe, RbConfig.ruby only provides after Ruby installation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/etc/extconf.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/etc/extconf.rb b/ext/etc/extconf.rb index 20a7dd00d6..435fbe7f3d 100644 --- a/ext/etc/extconf.rb +++ b/ext/etc/extconf.rb @@ -41,6 +41,12 @@ have_struct_member('struct passwd', 'pw_expire', 'pwd.h') have_struct_member('struct passwd', 'pw_passwd', 'pwd.h') have_struct_member('struct group', 'gr_passwd', 'grp.h') +# for https://github.com/ruby/etc +srcdir = File.expand_path("..", __FILE__) +if !File.exist?("#{srcdir}/depend") + %x[#{RbConfig.ruby} #{srcdir}/mkconstants.rb -o #{srcdir}/constdefs.h] +end + $distcleanfiles << "constdefs.h" create_makefile("etc") |