Skip to contentSkip to conversation

php: Link with libatomic on rv64

PATCH New [email protected] 1 participant 1 message May 22, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 php: Link with libatomic on rv64

From: Mingli Yu <[email protected]>

Fixes:
| /usr/src/debug/php/8.2.6-r0/Zend/zend_atomic.h:105: undefined reference to `__atomic_exchange_1'

---
 meta-oe/recipes-devtools/php/php_8.2.6.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-devtools/php/php_8.2.6.bb +1 -0
index 833a70fac..8b4ef76cd 100644
@@ -129,6 +129,7 @@ CFLAGS += " -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -DPTYS_ARE_GETPT -DPTYS_ARE_S
 CFLAGS += " -DHAVE_LIBDL "
 LDFLAGS += " -ldl "
 LDFLAGS:append:libc-musl = " -lucontext "
+LDFLAGS:append:riscv64 = " -latomic"
 
 EXTRA_OEMAKE = "INSTALL_ROOT=${D}"
 
Signature · 1 line
2.25.1