-
Notifications
You must be signed in to change notification settings - Fork 78
Should MakeMaker be setting LD_RUN_PATH on MacOS? #442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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... |
So at the moment there's a problem which spans 3 Perl related components.
Enter MySQL, the binary package builds for macos provided by Oracle has a tl;dr you should only nail Attached patch also adjusts |
Okay, but you seem to be describing problems with -rpath linker arguments. I was referring to ExtUtils-MakeMaker generating Makefiles that explicitly set the LD_RUN_PATH environment variable and produce shell commands that explicitly set the same. I believe that this is noise on MacOS and is confusing when debugging. It’s been a while since I read the code that prompted me to create this issue, but I don’t see how the proposed changes to the -rpath arguments address the noise of the environment variable. |
As you correctly pointed out, The reason I posted in this issue is because you cited one of the commits which are related to the -rpath problems on Darwin, and the follow up comment here to yours I assumed was also referring to fallout from Just for context |
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:
mattn/p5-Devel-CheckLib@61c8295
The text was updated successfully, but these errors were encountered: