-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
fix GH-8533: dynamic libphp linking on Mac #17183
base: PHP-8.3
Are you sure you want to change the base?
Conversation
744c5d7
to
34cb1f6
Compare
Note that, normally, only security fixes go in PHP 8.2 branch now. |
@devnexen rebased against 8.3 (I thought active support for 8.2 ended at the end of this year, sorry) |
No need to be sorry :) thanks for fixing this btw ! |
Is this specific only to libphp? Shouldn't this be applied on shared extensions as well? |
What I mean is that if it would be possibly better handled in PHP_BUILD_SHARED instead. |
I thought about that but I fear that changing the extension name from foo.so to foo.dylib will break many existing setups. Also, the issue seems to happen only when linking libphp. |
Ok it might be cleaner to add new type for |
@bukka do you prefer something like that? I'm not sure it's cleaner but it's your call. OS detection must happen in |
Ah ok, forgot about |
Sorry for late reply. I'm not ignoring the PRs, just too busy elsewhere. 😃 If it works that's great. I'm not sure I'll have time to check this so soon. I'll see what I can do in the following days. Probably, there will be some minor adjustments needed for 8.4 and master branches as there is refactored library path. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Builds and seems to work fine. Tested this a bit on macOS. Thanks @dunglas
Closes #8533.
Tested as functional on macOS 15.2 (Sequoia), but this should work on older versions too.