This commit is contained in:
Daniil Gentili 2023-05-30 19:13:55 +02:00
parent bbd55fce38
commit f0ffe296c9
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 21 additions and 0 deletions

21
8.2/sid/fpm/latomic.patch Normal file
View File

@ -0,0 +1,21 @@
diff --git a/configure.ac b/configure.ac
index fcb6297238..0a475ed80f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -373,6 +373,16 @@ if test "$ac_cv_func_dlopen" = "yes"; then
fi
AC_CHECK_LIB(m, sin)
+case $host_alias in
+ riscv64*)
+ AC_CHECK_LIB(atomic, __atomic_exchange_1, [
+ PHP_ADD_LIBRARY(atomic)
+ ], [
+ AC_MSG_ERROR([Problem with enabling atomic. Please check config.log for details.])
+ ])
+ ;;
+esac
+
dnl Check for inet_aton in -lc, -lbind and -lresolv.
PHP_CHECK_FUNC(inet_aton, resolv, bind)