blob: f96e35b597e955b2f4645e9da32316b06c92d899 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
From 732049eef0adb9b66f1d802ac0b7c1ece36ba2e6 Mon Sep 17 00:00:00 2001
From: Michael Heimpold <mhei@heimpold.de>
Date: Sat, 10 Oct 2026 17:57:05 +0200
Subject: [PATCH] php: do not unconditionally link libatomic on riscv64
The generic libatomic probe puts -latomic into EXTRA_LIBS. This causes
libphp.so to retain a DT_NEEDED entry even when its objects have no atomic
library references. Let the target link determine the required libraries.
Upstream-Status: PR not yet created
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
---
configure.ac | 6 ------
1 file changed, 6 deletions(-)
--- a/configure.ac
+++ b/configure.ac
@@ -339,12 +339,6 @@ AC_SEARCH_LIBS([dlopen], [dl],
AC_SEARCH_LIBS([sin], [m])
-case $host_alias in
- riscv64*)
- PHP_CHECK_FUNC(__atomic_exchange_1, atomic)
- ;;
-esac
-
dnl Solaris/Illumos for process mapping.
AC_SEARCH_LIBS([Pgrab], [proc])
|