Skip to content

Add -rpath when compiling XS modules on macOS #403

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

Merged
merged 3 commits into from
Nov 3, 2021

Conversation

hakonhagland
Copy link
Contributor

This change fixes issue #402 on my machine.

@Leont
Copy link
Member

Leont commented Sep 16, 2021

Can you please change the commit title to something that actually describe what it does?

@hakonhagland hakonhagland changed the title Fixes issue #402 Add -rpath when compiling XS modules on macOS Sep 17, 2021
@hakonhagland
Copy link
Contributor Author

@Leont I have updated the title to something more descriptive.

@haarg
Copy link
Member

haarg commented Sep 17, 2021

The important thing to fix is the subject of the actual commit, not the title of the PR.

@hakonhagland
Copy link
Contributor Author

@haarg I have update the commit message with the same title

Copy link
Member

@mohawk2 mohawk2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, and the CI likes it.

@mohawk2
Copy link
Member

mohawk2 commented Sep 24, 2021

@hakonhagland Could you add a test that breaks on MacOS without this change? That way we can permanently capture the benefit.

Håkon Hægland added 2 commits October 6, 2021 14:52
Added a new test case that tests a special case for the generation of XS
modules on OS darwin. More specifically, it tests if we are able to
compile an XS module which refers to another shared library in a
non-standard location such that we can load the XS module from a perl
script without having to set the DYLD_LIBRARY_PATH environment variable.
See PR Perl-Toolchain-Gang#403 and issue Perl-Toolchain-Gang#402.
Removed some debugging statements from the test code.
@hakonhagland
Copy link
Contributor Author

@mohawk2 I have added a test case, see the new commits.

@mohawk2
Copy link
Member

mohawk2 commented Oct 6, 2021

@mohawk2 I have added a test case, see the new commits.

Looks good. I've enabled the CI to run.

@bingos bingos merged commit 4359b0b into Perl-Toolchain-Gang:master Nov 3, 2021
bingos pushed a commit that referenced this pull request Nov 3, 2021
Added a new test case that tests a special case for the generation of XS
modules on OS darwin. More specifically, it tests if we are able to
compile an XS module which refers to another shared library in a
non-standard location such that we can load the XS module from a perl
script without having to set the DYLD_LIBRARY_PATH environment variable.
See PR #403 and issue #402.
khwilliamson pushed a commit to khwilliamson/ExtUtils-MakeMaker that referenced this pull request Dec 12, 2021
Added a new test case that tests a special case for the generation of XS
modules on OS darwin. More specifically, it tests if we are able to
compile an XS module which refers to another shared library in a
non-standard location such that we can load the XS module from a perl
script without having to set the DYLD_LIBRARY_PATH environment variable.
See PR Perl-Toolchain-Gang#403 and issue Perl-Toolchain-Gang#402.
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.

5 participants