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

linkers: skip -export_dynamic flag before MacOS 10.7 #13557

Merged

Conversation

wolfgangwalther
Copy link
Contributor

@wolfgangwalther wolfgangwalther commented Aug 17, 2024

Resolves #13543.

@barracuda156 @ryandesign can anyone test this on MacOS 10.6.x and MacOS 10.7 to confirm? I only have a much more recent version available.

CC @tristan957

The flag was only introduced in ld 224.1, as mentioned in the initial PR
mesonbuild#13291.

Resolves mesonbuild#13543
@barracuda156
Copy link
Contributor

@wolfgangwalther Thank you, I will try this soon.

@barracuda156
Copy link
Contributor

@wolfgangwalther Looks like it works as intended. I have replaced our patch which simply reverts adding the flag with your patch, and can still build glib2 with no errors.

@ryandesign Ryan, could you verify on an Intel machine just in case?

Copy link
Member

@dcbaker dcbaker left a comment

Choose a reason for hiding this comment

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

This looks good to me, as long as we've decided this doesn't regress anything I'm happy to merge it.

@wolfgangwalther
Copy link
Contributor Author

This looks good to me, as long as we've decided this doesn't regress anything I'm happy to merge it.

It only fixes a regression for MacOS before 10.7, so should be good. Just wanted to confirm with the test, that I got the two versions involved (MacOS system + linker) right. But that seems to be the case.

@dcbaker dcbaker added this to the 1.5.2 milestone Aug 20, 2024
@dcbaker dcbaker merged commit 7280639 into mesonbuild:master Aug 20, 2024
33 checks passed
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.

ld: unknown option: -export_dynamic
3 participants