File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ Compatibility:
53
53
* Refinements take place at ` Object#method ` and ` Module#instance_method ` (#2004 , @ssnickolay ).
54
54
* Add support for ` rb_scan_args_kw ` in C API (#2244 , @LillianZ ).
55
55
* Update random implementation layout to be more compatible (#2234 ).
56
+ * Set ` RbConfig::CONFIG['LIBPATHFLAG'/'RPATHFLAG'] ` like MRI to let ` $LIBPATH ` changes in ` extconf.rb ` work.
56
57
57
58
Performance:
58
59
Original file line number Diff line number Diff line change @@ -165,6 +165,7 @@ module RbConfig
165
165
'libdirname' => 'libdir' ,
166
166
'LIBEXT' => 'a' ,
167
167
'LIBPATHENV' => 'LD_LIBRARY_PATH' ,
168
+ 'LIBPATHFLAG' => ' -L%1$-s' ,
168
169
'LIBRUBY' => '' ,
169
170
'LIBRUBY_A' => '' ,
170
171
'LIBRUBYARG' => librubyarg ,
@@ -180,6 +181,7 @@ module RbConfig
180
181
'prefix' => prefix ,
181
182
'RANLIB' => ranlib ,
182
183
'RM' => 'rm -f' ,
184
+ 'RPATHFLAG' => ' -Wl,-rpath,%1$-s' ,
183
185
'RUBY_BASE_NAME' => ruby_base_name ,
184
186
'ruby_install_name' => ruby_install_name ,
185
187
'RUBY_INSTALL_NAME' => ruby_install_name ,
You can’t perform that action at this time.
0 commit comments