-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add -export_dynamic flag for AppleDynamicLinker #13291
Add -export_dynamic flag for AppleDynamicLinker #13291
Conversation
The apple linker uses -export_dynamic instead of --export-dynamic [1]. This should be set when setting export_dynamic: true. Resolves mesonbuild#13290 [1]: https://opensource.apple.com/source/ld64/ld64-609/doc/man/man1/ld.1.auto.html
I assume the two CI failures are not related - all other PRs seem to have them, too. |
Any idea if this has been the case for every version of the linker? Or has Meson just been wrong the whole time? |
There's more on that in the thread here: https://www.postgresql.org/message-id/flat/427c7c25-e8e1-4fc5-a1fb-01ceff185e5b%40technowledgy.de So essentially:
So yes, meson has not been covering this case for a while. |
Thanks for that awesome write up. |
@wolfgangwalther @tristan957 Is it possible to make this conditional on the macOS version being 10.7+? This flag is not supported on 10.6 and below, and adding it breaks the build of anything where it is appended. |
Yes. Please submit a PR |
@tristan957 Could you say how to check for [build] macOS version? |
The class has a version attribute/function most likely. You can then do a version comparison. |
The flag was only introduced in ld 224.1, as mentioned in the initial PR mesonbuild#13291. Resolves mesonbuild#13543
The flag was only introduced in ld 224.1, as mentioned in the initial PR mesonbuild#13291. Resolves mesonbuild#13543
The apple linker uses -export_dynamic instead of --export-dynamic 1. This should be set when setting export_dynamic: true.
Resolves #13290