[php-src] PR #11786: On riscv64 require libatomic if actually needed
| From: | jcourreges | Date: | Tue, 25 Jul 2023 12:44:25 +0000 |
| Subject: | [php-src] PR #11786: On riscv64 require libatomic if actually needed | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23162@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11786
Author: jcourreges
clang and newer gcc releases support byte-sized atomic accesses on riscv64 through inline builtins.
In both cases the hard dependency on libatomic added by GH-11321 isn't useful.
Stop using AC_CHECK_LIB() which is too naive to notice that libatomic isn't needed. Instead,
PHP_CHECK_FUNC() will retry the check with -latomic if required.