diff mbox series

[oe,meta-oe,1/3] libdbus-c++: Add -pthread to linker flags

Message ID 20170711045423.21332-1-raj.khem@gmail.com
State Accepted
Commit 592e9f26cca4944adf4e534af5794680f07d098c
Headers show
Series [oe,meta-oe,1/3] libdbus-c++: Add -pthread to linker flags | expand

Commit Message

Khem Raj July 11, 2017, 4:54 a.m. UTC
It uses symbols from libpthread e.g. pthread_mutexattr_init and pthread_mutexattr_settype
but does not link with pthreads, gold is strict about it and calls out with an error

../src/.libs/libdbus-c++-1.so: error: undefined reference to 'pthread_mutexattr_init'
../src/.libs/libdbus-c++-1.so: error: undefined reference to 'pthread_mutexattr_settype'

Therefore correct the linker cmdline

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

---
 meta-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb | 1 +
 1 file changed, 1 insertion(+)

-- 
2.13.2

-- 
_______________________________________________
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-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb b/meta-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb
index 4cc133301..a6d8b86ee 100644
--- a/meta-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb
+++ b/meta-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb
@@ -21,6 +21,7 @@  SRC_URI[sha256sum] = "bc11ac297b3cb010be904c72789695543ee3fdf3d75cdc8225fd371385
 inherit autotools pkgconfig
 
 EXTRA_OECONF = "--disable-ecore --disable-examples --disable-tests"
+LDFLAGS += "-pthread"
 
 PACKAGE_BEFORE_PN = "${PN}-tools"