[php-src] master: configure.ac: Use 64-bit fibers on AIX without overriding triplet (#23284)
| From: | Calvin Buckley via GitHub | Date: | Mon, 17 Aug 2026 16:21:31 +0000 |
| Subject: | [php-src] master: configure.ac: Use 64-bit fibers on AIX without overriding triplet (#23284) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-140778@lists.php.net to get a copy of this message | ||
Author: Calvin Buckley (NattyNarwhal)
Committer: GitHub (web-flow)
Pusher: NattyNarwhal
Date: 2026-08-17T13:21:20-03:00
Commit: https://github.com/php/php-src/commit/38e8b232da8981790d8c3aa635cf09875a837e32
Raw diff: https://github.com/php/php-src/commit/38e8b232da8981790d8c3aa635cf09875a837e32.diff
configure.ac: Use 64-bit fibers on AIX without overriding triplet (#23284)
AIX/PASE defaults to a powerpc-ibm-(aix|os400) triplet, even though the
build may be 64-bit. This causes a problem with fibers, as the 32-bit
assembly will be selected, causing a build failure. Detect this case
and override the selected assembly ourselves.
Tested on PASE, which with IBM's provided packages, defaults to a 64-bit
build environment.
Changed paths:
M configure.ac
Diff:
diff --git a/configure.ac b/configure.ac
index 3229e0dac040..b1ff51bcc2d1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1224,7 +1224,15 @@ AS_CASE([$host_cpu],
AS_CASE([$host_os],
[darwin*], [fiber_os="mac"],
- [aix*|os400*], [fiber_os="aix"],
+ [aix*|os400*], [
+ fiber_os="aix"
+ dnl AIX triplets start w/ powerpc- even though it may be 64-bit (as AIX
+ dnl has a multiple bitness world). Check if the build is 64-bit, or we
+ dnl end up using the wrong fibre asm (w/o forcing a powerpc64 triplet)
+ AS_IF([test "$ac_cv_sizeof_long" -eq 8], [
+ fiber_cpu="ppc64"
+ ], [])
+ ],
[freebsd*], [fiber_os="freebsd"],
[midipix], [fiber_os="midipix"],
[fiber_os="other"]