Perl-Toolchain-Gang / ExtUtils-MakeMaker

Perl module to make Makefiles and build modules (what backs Makefile.PL)
https://metacpan.org/release/ExtUtils-MakeMaker
64 stars 76 forks source link

Should MakeMaker be setting LD_RUN_PATH on MacOS? #442

Open jkahrman opened 1 year ago

jkahrman commented 1 year ago

Unless I'm mistaken, LD_RUN_PATH is only used by the GNU Linker (or maybe all ELF linkers, I'm not sure where to look for an authoritative answer). MacOS uses dyld, which I believe ignores this variable (again, I'm extrapolating based on naming conventions and the lack of internet references suggesting otherwise).

If that's the case, shouldn't MakeMaker avoid setting this variable? I realize it isn't hurting anything, but the noise is confusing when debugging.

Others have already gone in this direction: https://github.com/mattn/p5-Devel-CheckLib/commit/61c8295e0017dffa5aa9dffc6aeb73801de78f64

twogee commented 11 months ago

Actually, LD_RUN_PATH causes grief with homebrew on Apple silicon, where the x86(_64) version installs in /usr/local, and arm64 version installs in /opt/homebrew...