forked from conan-io/conan-center-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
85 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/configure.ac b/configure.ac | ||
--- configure.ac | ||
+++ configure.ac | ||
@@ -3027,9 +3027,7 @@ STATIC= | ||
# mkmf.rb's have_header() to fail if the desired resource happens to be | ||
# installed in the /usr/local tree. | ||
RUBY_APPEND_OPTION(CCDLFLAGS, -fno-common)], | ||
- [bsdi*|cygwin*|msys*|mingw*|aix*|interix*], [ ], | ||
- [ | ||
- RUBY_APPEND_OPTION(CCDLFLAGS, -fPIC)]) | ||
+ [ ]) | ||
], [ | ||
AS_CASE(["$target_os"], | ||
[solaris*|irix*], [CCDLFLAGS="$CCDLFLAGS -KPIC"], |
39 changes: 39 additions & 0 deletions
39
recipes/ruby/all/patches/0003-openssl-zlib-ext-3.3.0.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb | ||
index 56f4a1c..1d45d88 100644 | ||
--- a/ext/openssl/extconf.rb | ||
+++ b/ext/openssl/extconf.rb | ||
@@ -68,6 +68,7 @@ def find_openssl_library | ||
# required for static OpenSSL libraries | ||
have_library("gdi32") # OpenSSL <= 1.0.2 (for RAND_screen()) | ||
have_library("crypt32") | ||
+ have_library("advapi32") | ||
end | ||
|
||
return false unless have_header("openssl/ssl.h") | ||
@@ -78,8 +79,12 @@ def find_openssl_library | ||
|
||
if $mswin | ||
# OpenSSL >= 1.1.0: libcrypto.lib and libssl.lib. | ||
+ # Potentially with 'd' appended (conan center index) | ||
if have_library("libcrypto", "CRYPTO_malloc") && | ||
- have_library("libssl", "SSL_new") | ||
+ have_library("libssl", "SSL_new") | ||
+ return true | ||
+ elsif have_library("libcryptod", "CRYPTO_malloc") && | ||
+ have_library("libssld", "SSL_new") | ||
return true | ||
end | ||
|
||
diff --git a/ext/zlib/extconf.rb b/ext/zlib/extconf.rb | ||
index 2b2dbb1..2abc037 100644 | ||
--- a/ext/zlib/extconf.rb | ||
+++ b/ext/zlib/extconf.rb | ||
@@ -11,7 +11,7 @@ require 'rbconfig' | ||
dir_config 'zlib' | ||
|
||
libs = $libs | ||
-have_zlib = %w'z libz zlib1 zlib zdll zlibwapi'.any? {|z| have_library(z, 'deflateReset(NULL)', 'zlib.h')} | ||
+have_zlib = %w'z zlibstatic zlibstaticd zlib zlibd libz zlib1 zdll zlibwapi'.any? {|z| have_library(z, 'deflateReset(NULL)', 'zlib.h')} | ||
|
||
unless have_zlib | ||
$libs = libs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
versions: | ||
"3.3.0": | ||
folder: all | ||
"3.2.2": | ||
folder: all | ||
"3.1.0": | ||
|