diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-07-06 05:44:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-07-06 05:44:58 +0000 |
commit | 1bdc1a552990188cc15cb8dc051afce012bfb4c4 (patch) | |
tree | 99f504a737b65bfbd95d71ba2e2bd8a9ab5fa9b4 /ext/digest/digest_conf.rb | |
parent | c89b06455cbba451935435af1bb9ccf34b0b35cf (diff) | |
download | ruby-1bdc1a552990188cc15cb8dc051afce012bfb4c4.tar.gz |
Local header dependencies
* lib/mkmf.rb (create_makefile): store $headers in LOCAL_HDRS for
depend files.
* ext/digest/digest_conf.rb (digest_conf): add implementation
specific headers to $header.
* ext/digest/{md5,rmd160,sha1,sha2}/depend: add LOCAL_HDRS to the
dependencies.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/digest/digest_conf.rb')
-rw-r--r-- | ext/digest/digest_conf.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/digest/digest_conf.rb b/ext/digest/digest_conf.rb index 432652852f..8e36ce5d41 100644 --- a/ext/digest/digest_conf.rb +++ b/ext/digest/digest_conf.rb @@ -6,6 +6,7 @@ def digest_conf(name, hdr = name, funcs = nil, types = nil) if File.exist?("#$srcdir/#{name}cc.h") and have_header("CommonCrypto/CommonDigest.h") $defs << "-D#{name.upcase}_USE_COMMONDIGEST" + $headers << "#{name}cc.h" return :commondigest end end @@ -21,6 +22,7 @@ def digest_conf(name, hdr = name, funcs = nil, types = nil) if funcs.all? {|func| OpenSSL.check_func("#{func}_Transform", hdr)} && types.all? {|type| have_type("#{type}_CTX", hdr)} $defs << "-D#{name.upcase}_USE_OPENSSL" + $headers << "#{name}ossl.h" return :ossl end end |