Skip to content
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

Proposal to have ExtUtils::MakeMaker maintain all rpath arguments #440

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jkahrman
Copy link

ExtUtils::MakeMaker previously dropped any rpath argument that isn't an existing directory. This is too restrictive because:

  • the directory could be created after the Makefile is generated
  • rpaths can be the variables $ORIGIN on Linux or @rpath, @loader_path, or @executable_path on Mac

Also, do a Makefile escape of any single '$' in the rpath value ($ -> $$). Since the rpath value may also be consumed in a test in Makefile.PL where it doesn't need to be escaped, it's inconvenient to unescape it there.

See #439

lib/ExtUtils/Liblist/Kid.pm Outdated Show resolved Hide resolved
jkahrman added 2 commits March 23, 2023 19:42
ExtUtils::MakeMaker previously dropped any rpath argument that isn't an existing directory. This is too restrictive because:
* the directory could be created after the Makefile is generated
* rpaths can be the variables $ORIGIN on Linux or @rpath, @loader_path, or @executable_path on Mac

See Perl-Toolchain-Gang#439
Since the rpath value may also be consumed in a test in Makefile.PL where
it doesn't need to be escaped, it's inconvenient to unescape it there.
@mohawk2
Copy link
Member

mohawk2 commented Mar 24, 2023

I've approved the CI to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants