diff mbox series

[meta-oe,4/4] mariadb: Fix build on riscv32

Message ID 20240529032948.150704-4-raj.khem@gmail.com
State New
Headers show
Series [meta-oe,1/4] ckermit: Define return type for main | expand

Commit Message

Khem Raj May 29, 2024, 3:29 a.m. UTC
Link explicitly with libatomic for 64bit atomics

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-oe/recipes-dbs/mysql/mariadb.inc | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-dbs/mysql/mariadb.inc b/meta-oe/recipes-dbs/mysql/mariadb.inc
index bbfad1e478..695965f7d2 100644
--- a/meta-oe/recipes-dbs/mysql/mariadb.inc
+++ b/meta-oe/recipes-dbs/mysql/mariadb.inc
@@ -78,6 +78,7 @@  BUILD_CFLAGS += "-fuse-ld=bfd"
 BUILD_CXXFLAGS += "-fuse-ld=bfd"
 
 LDFLAGS:x86:toolchain-clang = "-latomic"
+LDFLAGS:riscv32:toolchain-clang = "-latomic"
 
 EXTRA_OECMAKE = "-DWITH_EMBEDDED_SERVER=ON \
                  -DWITH_JEMALLOC=no \