Skip to content

Commit

Permalink
Merge pull request #629 from junaruga/wip/env-appended-flags
Browse files Browse the repository at this point in the history
Append flags from environment variables.
  • Loading branch information
junaruga committed May 31, 2023
2 parents 22e601a + b551eb8 commit bd7b593
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ext/openssl/extconf.rb
Expand Up @@ -18,6 +18,12 @@

Logging::message "=== OpenSSL for Ruby configurator ===\n"

# Append flags from environment variables.
extcflags = ENV["RUBY_OPENSSL_EXTCFLAGS"]
append_cflags(extcflags.split) if extcflags
extldflags = ENV["RUBY_OPENSSL_EXTLDFLAGS"]
append_ldflags(extldflags.split) if extldflags

##
# Adds -DOSSL_DEBUG for compilation and some more targets when GCC is used
# To turn it on, use: --with-debug or --enable-debug
Expand Down

0 comments on commit bd7b593

Please sign in to comment.