[oe-commits] [meta-openembedded] branch master-next updated: Add -pthread to linker flags

git at git.openembedded.org git at git.openembedded.org
Tue Mar 5 18:28:57 UTC 2019

This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

The following commit(s) were added to refs/heads/master-next by this push:
     new 1433504  Add -pthread to linker flags
1433504 is described below

commit 1433504c1cce32c2b9ac7fb1af46933670dda308
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Tue Mar 5 10:26:46 2019 -0800

    Add -pthread to linker flags
    Fixes issues like
    ld.bfd: librocksdblib.a(memtable.cc.o):/usr/include/c++/9.0.1/bits/atomic_base.h:438: more undefined references to `__atomic_compare_exchange_1' follow
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
 meta-oe/recipes-dbs/mysql/mariadb.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-dbs/mysql/mariadb.inc b/meta-oe/recipes-dbs/mysql/mariadb.inc
index 65f98bd..cb2d320 100644
--- a/meta-oe/recipes-dbs/mysql/mariadb.inc
+++ b/meta-oe/recipes-dbs/mysql/mariadb.inc
@@ -60,7 +60,7 @@ PACKAGECONFIG[setupdb] = ", ,,${PN}-setupdb"
 # MariaDB doesn't link properly with gold
 # https://mariadb.atlassian.net/browse/MDEV-5982
 TARGET_CFLAGS += "-fuse-ld=bfd"
+LDFLAGS += "-pthread"
 BUILD_CFLAGS += "-fuse-ld=bfd"
 BUILD_CXXFLAGS += "-fuse-ld=bfd"

To stop receiving notification emails like this one, please contact
the administrator of this repository.

More information about the Openembedded-commits mailing list