diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-05-23 11:19:52 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-05-23 11:58:26 +0900 |
| commit | c884de63c8c9833ee6a054b6363e23cfc2cbd74e (patch) | |
| tree | 5e9220c5bdca6ae23a0394b7d4dad5e8299bf18a /include/ruby/internal/encoding/encoding.h | |
| parent | 3abd03989d4309974ec30d227afe638296ede732 (diff) | |
merge revision(s) 48644e71096c70132be9dfdcbfb414ec2e68d18b:
tool/runruby.rb: remove LD_PRELOAD-like env-var options from
runruby.rb
LD_PRELOAD sometimes forces loading libraries into unrelated
executables. For example, macOS on recent Apple Silicon can execute
arm64 and arm64e binaries by default, and /usr/bin/clang is built as
arm64e. If Ruby is built as arm64, and mkmf launched through runruby.rb
spawns /usr/bin/clang, dynamic loader tries to load libruby (arm64e)
into clang (arm64). This force-load causes library load failure.
In theory, we don't need both LD_PRELOAD and LD_LIBRARY_PATH at the same
time, because executables requiring libruby already have libruby
dependency, so LD_LIBRARY_PATH is enough for this case.
---
tool/runruby.rb | 9 ---------
1 file changed, 9 deletions(-)
Diffstat (limited to 'include/ruby/internal/encoding/encoding.h')
0 files changed, 0 insertions, 0 deletions
