[php-src] PR #25557: Fix ZTS build on OpenBSD
| From: | osbre | Date: | Wed, 18 Nov 2026 14:44:15 +0000 |
| Subject: | [php-src] PR #25557: Fix ZTS build on OpenBSD | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40777@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25557
Author: osbre
On OpenBSD, TSRM should use the default TLS model, the same as it already does on FreeBSD and
NetBSD.
OpenBSD uses emulated TLS, so there is no
_tsrm_ls_cache symbol. On aarch64,
tsrm_get_ls_cache_tcb_offset() still references it in inline asm, and the link fails:
ld: error: undefined symbol: _tsrm_ls_cache
This PR adds OpenBSD to that list to fix the build.
Tested with a --enable-zts build on OpenBSD -current/arm64.