[oe-commits] Tyler Hall : db: Fix libtool linking against local libstdc++.so

git at git.openembedded.org git at git.openembedded.org
Sun Feb 2 11:26:04 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: db8a2c29b936e5252970c85def927d9cc56a8376
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=db8a2c29b936e5252970c85def927d9cc56a8376

Author: Tyler Hall <tylerwhall at gmail.com>
Date:   Fri Jan 24 23:14:03 2014 -0500

db: Fix libtool linking against local libstdc++.so

Building the C++ bindings in a484b35b818768487ff27cf06b8c5d4e128126af
introduced this error on systems with /usr/lib/libstdc++.so present:

    /usr/lib/libstdc++.so: file not recognized: File format not recognized

The shipped libtool is sysroot aware, so pass --with-sysroot so it will
extract the sysroot from the compiler.

Signed-off-by: Tyler Hall <tylerwhall at gmail.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-support/db/db_5.3.21.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-support/db/db_5.3.21.bb b/meta/recipes-support/db/db_5.3.21.bb
index 8ec8870..caf6890 100644
--- a/meta/recipes-support/db/db_5.3.21.bb
+++ b/meta/recipes-support/db/db_5.3.21.bb
@@ -63,7 +63,7 @@ FILES_SOLIBSDEV = "${libdir}/libdb.so ${libdir}/libdb_cxx.so"
 # All the --disable-* options replace --enable-smallbuild, which breaks a bunch of stuff (eg. postfix)
 DB5_CONFIG ?= "--enable-o_direct --disable-cryptography --disable-queue --disable-replication --disable-verify --disable-compat185 --disable-sql"
 
-EXTRA_OECONF = "${DB5_CONFIG} --enable-shared --enable-cxx"
+EXTRA_OECONF = "${DB5_CONFIG} --enable-shared --enable-cxx --with-sysroot"
 
 # Override the MUTEX setting here, the POSIX library is
 # the default - "POSIX/pthreads/library".



More information about the Openembedded-commits mailing list