-
Notifications
You must be signed in to change notification settings - Fork 8k
Fix #77676: shared module generation on AIX bug #3896
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
Conversation
Makefiles for PHP extensions generated by phpize expect the PHP_MODULES to contain a list of libtool .la files so that it can read the $dlname variable from them by sourcing them in to a shell. On AIX, the code was setting PHP_MODULES to a list of .so files, which meant the dlname was blank, preventing the tests from being able to run. Change the AIX code path in the PHP_SHARED_MODULE macro to match the output on other platforms, using libtool .la files.
3e8b5b2 to
8bf5331
Compare
|
In d4fd9a5, Makefile.global was change to read the extension name by reading in the Lines 853 to 863 in d4fd9a5
It's likely that this was broken on these platforms before, because this line only works when the extension is .la: This same issue was fixed for macOS in e46cd60 bug report and netware was never fixed, but rather support was removed in 2104bea. |
|
Hello, thanks for the patch. I think it sounds good to go. The The So, in the end, the only thing special and different for AIX systems is that |
I kind of figured that would work, but I was not sure (not a Makefile wizard). Due to the
Yes, the -G enables a bunch of AIX ld features related to run-time linking. Do you think it would be worthwhile to attempt to merge these two cases in some way since they only differ by that one flag? Perhaps we could just append the |
|
Yes, we can simplify that switch. Maybe something like this should work ok: |
Makefiles for PHP extensions generated by phpize expect the PHP_MODULES to contain a list of libtool .la files so that it can read the $dlname variable from them by sourcing them in to a shell. On AIX, the code was setting PHP_MODULES to a list of .so files, which meant the dlname was blank, preventing the tests from being able to run.
Change the AIX code path in the PHP_SHARED_MODULE macro to match the output on other platforms, using libtool .la files.