mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	openssl: fix build with OpenSSL 1.1.0 and no pkg-config
* ext/openssl/extconf.rb: Check for CRYPTO_malloc() and SSL_new(). OpenSSL_add_all_digests() and SSL_library_init() are deprecated and converted to macros in OpenSSL 1.1.0. [ruby-core:75225] [Feature #12324] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									b5da848df9
								
							
						
					
					
						commit
						accd30740c
					
				
					 2 changed files with 9 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,10 @@
 | 
			
		|||
Thu Jun  9 15:03:35 2016  Kazuki Yamaguchi  <k@rhe.jp>
 | 
			
		||||
 | 
			
		||||
	* ext/openssl/extconf.rb: Check for CRYPTO_malloc() and SSL_new().
 | 
			
		||||
	  OpenSSL_add_all_digests() and SSL_library_init() are deprecated and
 | 
			
		||||
	  converted to macros in OpenSSL 1.1.0.
 | 
			
		||||
	  [ruby-core:75225] [Feature #12324]
 | 
			
		||||
 | 
			
		||||
Wed Jun  8 23:09:51 2016  Kazuhiro NISHIYAMA  <zn@mbf.nifty.com>
 | 
			
		||||
 | 
			
		||||
	* string.c (rb_str_ascii_casemap): fix compile error.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -44,8 +44,8 @@ end
 | 
			
		|||
result = pkg_config("openssl") && have_header("openssl/ssl.h")
 | 
			
		||||
unless result
 | 
			
		||||
  result = have_header("openssl/ssl.h")
 | 
			
		||||
  result &&= %w[crypto libeay32].any? {|lib| have_library(lib, "OpenSSL_add_all_digests")}
 | 
			
		||||
  result &&= %w[ssl ssleay32].any? {|lib| have_library(lib, "SSL_library_init")}
 | 
			
		||||
  result &&= %w[crypto libeay32].any? {|lib| have_library(lib, "CRYPTO_malloc")}
 | 
			
		||||
  result &&= %w[ssl ssleay32].any? {|lib| have_library(lib, "SSL_new")}
 | 
			
		||||
  unless result
 | 
			
		||||
    Logging::message "=== Checking for required stuff failed. ===\n"
 | 
			
		||||
    Logging::message "Makefile wasn't created. Fix the errors above.\n"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue