On macOS, in the case of --enable-shared and --disable-load-relative, already install libruby.dylib is used during tests if exists.
This is because since [Bug #14992], DYLD_FALLBACK_LIBRARY_PATH is used instead of DYLD_LIBRARY_PATH.
The latter environment variable is used preferentially, whereas the former is used as a fallback, as the name implies.
Hi! Sorry if this is the wrong place to ask (it's my first time here), but does this not break the --enable-load-relative case? Wasn't the commit that this reverts added to make sure mkmf works for those builds?