File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ New features:
5
5
* Enable and document ` --coverage ` option (#1840 , @chrisseaton ).
6
6
* Update the internal LLVM toolchain to LLVM 9 and reduce its download size.
7
7
* Updated to Ruby 2.6.5 (#1749 ).
8
+ * Automatically set ` PKG_CONFIG_PATH ` as needed for compiling OpenSSL on macOS (#1830 ).
8
9
9
10
Bug fixes:
10
11
Original file line number Diff line number Diff line change 22
22
abort 'Could not find OpenSSL headers, install via Homebrew or MacPorts or set OPENSSL_PREFIX'
23
23
end
24
24
end
25
+
26
+ if openssl_prefix = ENV [ 'OPENSSL_PREFIX' ]
27
+ # We need to set PKG_CONFIG_PATH too, see https://github.com/oracle/truffleruby/issues/1830
28
+ # OpenSSL's extconf.rb calls the pkg_config() helper.
29
+ ENV [ 'PKG_CONFIG_PATH' ] = [ "#{ openssl_prefix } /lib/pkgconfig" , *ENV [ 'PKG_CONFIG_PATH' ] ] . join ( ':' )
30
+ end
You can’t perform that action at this time.
0 commit comments