Skip to content

Commit bd7b593

Browse files
authored
Merge pull request #629 from junaruga/wip/env-appended-flags
Append flags from environment variables.
2 parents 22e601a + b551eb8 commit bd7b593

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ext/openssl/extconf.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818

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

21+
# Append flags from environment variables.
22+
extcflags = ENV["RUBY_OPENSSL_EXTCFLAGS"]
23+
append_cflags(extcflags.split) if extcflags
24+
extldflags = ENV["RUBY_OPENSSL_EXTLDFLAGS"]
25+
append_ldflags(extldflags.split) if extldflags
26+
2127
##
2228
# Adds -DOSSL_DEBUG for compilation and some more targets when GCC is used
2329
# To turn it on, use: --with-debug or --enable-debug

0 commit comments

Comments
 (0)