diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2023-05-22 16:28:01 +0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2023-05-22 09:59:45 -0400 |
commit | c2d8e78319ab5df836f52efd0a7f35b7dac590b0 (patch) | |
tree | 3e00fd0965e9e88a97db1a8e83683138584858ae | |
parent | c032fd0b1a9d444711103c2703dfa8e2964a3865 (diff) | |
download | meta-openembedded-c2d8e78319ab5df836f52efd0a7f35b7dac590b0.tar.gz |
php: Link with libatomic on rv64
Fixes:
| /usr/src/debug/php/8.2.5-r0/Zend/zend_atomic.h:105: undefined reference to `__atomic_exchange_1'
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-oe/recipes-devtools/php/php_8.2.5.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/php/php_8.2.5.bb b/meta-oe/recipes-devtools/php/php_8.2.5.bb index 48a0d6b228..fc11e65af4 100644 --- a/meta-oe/recipes-devtools/php/php_8.2.5.bb +++ b/meta-oe/recipes-devtools/php/php_8.2.5.bb | |||
@@ -128,6 +128,7 @@ CFLAGS += " -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -DPTYS_ARE_GETPT -DPTYS_ARE_S | |||
128 | CFLAGS += " -DHAVE_LIBDL " | 128 | CFLAGS += " -DHAVE_LIBDL " |
129 | LDFLAGS += " -ldl " | 129 | LDFLAGS += " -ldl " |
130 | LDFLAGS:append:libc-musl = " -lucontext " | 130 | LDFLAGS:append:libc-musl = " -lucontext " |
131 | LDFLAGS:append:riscv64 = " -latomic" | ||
131 | 132 | ||
132 | EXTRA_OEMAKE = "INSTALL_ROOT=${D}" | 133 | EXTRA_OEMAKE = "INSTALL_ROOT=${D}" |
133 | 134 | ||