From bb318692a6f6ce10428ad92d330164eacf414d23 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 5 Oct 2014 02:03:55 +0000 Subject: digest/*/extconf.rb: do not link openssl when using bundled * ext/digest/{md5,rmd160,sha1,sha2}/extconf.rb: configure OpenSSL only if bundled libraries is not used, so that OpenSSL is not linked unnecessarily. [ruby-core:65404] [Bug #10324] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/digest/rmd160/extconf.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ext/digest/rmd160/extconf.rb') diff --git a/ext/digest/rmd160/extconf.rb b/ext/digest/rmd160/extconf.rb index 60131aa554..64ffbd7dc8 100644 --- a/ext/digest/rmd160/extconf.rb +++ b/ext/digest/rmd160/extconf.rb @@ -9,12 +9,12 @@ $INCFLAGS << " -I$(srcdir)/.." $objs = [ "rmd160init.#{$OBJEXT}" ] -dir_config("openssl") -pkg_config("openssl") -require File.expand_path('../../../openssl/deprecation', __FILE__) - if !with_config("bundled-rmd160") && - have_library("crypto") && OpenSSL.check_func("RIPEMD160_Transform", "openssl/ripemd.h") + (dir_config("openssl") + pkg_config("openssl") + require File.expand_path('../../../openssl/deprecation', __FILE__) + have_library("crypto")) && + OpenSSL.check_func("RIPEMD160_Transform", "openssl/ripemd.h") $objs << "rmd160ossl.#{$OBJEXT}" else $objs << "rmd160.#{$OBJEXT}" -- cgit v1.2.3