diff mbox series

[oe,meta-multimedia,2/2] vlc: Add -pthread on riscv

Message ID 20190307052628.38454-2-raj.khem@gmail.com
State New
Headers show
Series [oe,meta-oe,1/2] php_7.3.2.bb: Switch to mysqlnd | expand

Commit Message

Khem Raj March 7, 2019, 5:26 a.m. UTC
Fixes missing atomic symols during linking e.g.

vlc-3.0.6/src/misc/picture_pool.c:201: undefined reference to `__atomic_fetch_add_2'
collect2: error: ld returned 1 exit status

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta-multimedia/recipes-multimedia/vlc/vlc_3.0.6.bb | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.21.0

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox series

Patch

diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc_3.0.6.bb b/meta-multimedia/recipes-multimedia/vlc/vlc_3.0.6.bb
index 95b6779fde..1ae213ff32 100644
--- a/meta-multimedia/recipes-multimedia/vlc/vlc_3.0.6.bb
+++ b/meta-multimedia/recipes-multimedia/vlc/vlc_3.0.6.bb
@@ -3,6 +3,8 @@  require ${BPN}.inc
 # work around build failure
 EXTRA_OECONF += " --enable-libxml2=no"
 
+LDFLAGS_append_riscv64 = " -pthread"
+
 SRC_URI += " \
             file://0002-glibc-does-not-provide-strlcpy.patch \
             file://0005-libpostproc-header-check.patch \