Skip to content

Commit

Permalink
Merge pull request #2 from ericbeland/fix-sharing-crypto-ssl-libs
Browse files Browse the repository at this point in the history
Use no-shared to stop getting libcrypto and libssl linked dependencies
  • Loading branch information
ericbeland authored Feb 16, 2023
2 parents 1a9d1e6 + 0d10f25 commit 126f598
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ def initialize(entrance, options = {})
elsif @options[:debug]
' -DRUBY_DEBUG -fPIC -g -O0 -pipe '
else
' -DRUBY_DEBUG -fPIC -O3 -fno-fast-math -ggdb3 -Os -fdata-sections -ffunction-sections -pipe -Wno-error=implicit-function-declaration '
#' -DRUBY_DEBUG -fPIC -O3 -fno-fast-math -ggdb3 -Os -fdata-sections -ffunction-sections -pipe -Wno-error=implicit-function-declaration '
' -fPIC -O3 -fno-fast-math -Os -fdata-sections -ffunction-sections -pipe -Wno-error=implicit-function-declaration '
end

# install prefix for stuffed libraries
Expand Down Expand Up @@ -570,7 +571,7 @@ def stuff_openssl
@utils.run(compile_env,
'./Configure',
'darwin64-arm64-cc',
'shared',
'no-shared',
'enable-rc5',
'zlib',
'no-asm',
Expand All @@ -583,7 +584,7 @@ def stuff_openssl
'perl',
'Configure',
'linux-aarch64',
'shared',
'no-shared',
"--openssldir=#{@options[:openssl_dir]}",
"--prefix=#{@local_build}")
@utils.run(compile_env, "make #{@options[:nmake_args]}")
Expand Down

0 comments on commit 126f598

Please sign in to comment.