Skip to content

Commit 126f598

Browse files
authored
Merge pull request #2 from ericbeland/fix-sharing-crypto-ssl-libs
Use no-shared to stop getting libcrypto and libssl linked dependencies
2 parents 1a9d1e6 + 0d10f25 commit 126f598

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lib/compiler.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ def initialize(entrance, options = {})
110110
elsif @options[:debug]
111111
' -DRUBY_DEBUG -fPIC -g -O0 -pipe '
112112
else
113-
' -DRUBY_DEBUG -fPIC -O3 -fno-fast-math -ggdb3 -Os -fdata-sections -ffunction-sections -pipe -Wno-error=implicit-function-declaration '
113+
#' -DRUBY_DEBUG -fPIC -O3 -fno-fast-math -ggdb3 -Os -fdata-sections -ffunction-sections -pipe -Wno-error=implicit-function-declaration '
114+
' -fPIC -O3 -fno-fast-math -Os -fdata-sections -ffunction-sections -pipe -Wno-error=implicit-function-declaration '
114115
end
115116

116117
# install prefix for stuffed libraries
@@ -570,7 +571,7 @@ def stuff_openssl
570571
@utils.run(compile_env,
571572
'./Configure',
572573
'darwin64-arm64-cc',
573-
'shared',
574+
'no-shared',
574575
'enable-rc5',
575576
'zlib',
576577
'no-asm',
@@ -583,7 +584,7 @@ def stuff_openssl
583584
'perl',
584585
'Configure',
585586
'linux-aarch64',
586-
'shared',
587+
'no-shared',
587588
"--openssldir=#{@options[:openssl_dir]}",
588589
"--prefix=#{@local_build}")
589590
@utils.run(compile_env, "make #{@options[:nmake_args]}")

0 commit comments

Comments
 (0)