<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Am 06.11.2018 um 13:24 schrieb Ross Burton <<a href="mailto:ross.burton@intel.com" class="">ross.burton@intel.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><div class="">If sqlite3 is built with FTS5 it uses log() from libm, but that linkage is lost<br class="">if we manually statically link so explicitly link to libm.<br class=""><br class="">Signed-off-by: Ross Burton <<a href="mailto:ross.burton@intel.com" class="">ross.burton@intel.com</a>><br class="">---<br class=""> meta/recipes-devtools/pseudo/files/libm.patch | 33 +++++++++++++++++++++++++++<br class=""> meta/recipes-devtools/pseudo/pseudo_git.bb | 1 +<br class=""> 2 files changed, 34 insertions(+)<br class=""> create mode 100644 meta/recipes-devtools/pseudo/files/libm.patch<br class=""><br class="">diff --git a/meta/recipes-devtools/pseudo/files/libm.patch b/meta/recipes-devtools/pseudo/files/libm.patch<br class="">new file mode 100644<br class="">index 00000000000..1a82979313d<br class="">--- /dev/null<br class="">+++ b/meta/recipes-devtools/pseudo/files/libm.patch<br class="">@@ -0,0 +1,33 @@<br class="">+If sqlite3 is built with FTS5 enabled then it links to libm.so for log(), but if<br class="">+we statically link to libsqlite3.a then this linkage is lost.<br class="">+<br class="">+Work around this by always linking to libm.so.<br class="">+<br class="">+Upstream-Status: Submitted<br class="">+Signed-off-by: Ross Burton <<a href="mailto:ross.burton@intel.com" class="">ross.burton@intel.com</a>><br class="">+<br class="">+From 4633a8750f0966621d258548fba82bc6aa5aa997 Mon Sep 17 00:00:00 2001<br class="">+From: Ross Burton <<a href="mailto:ross.burton@intel.com" class="">ross.burton@intel.com</a>><br class="">+Date: Tue, 6 Nov 2018 12:13:17 +0000<br class="">+Subject: [PATCH] Makefile: sqlite can need libm<br class="">+<br class="">+---<br class="">+ <a href="http://Makefile.in" class="">Makefile.in</a> | 2 +-<br class="">+ 1 file changed, 1 insertion(+), 1 deletion(-)<br class="">+<br class="">+diff --git a/<a href="http://Makefile.in" class="">Makefile.in</a> b/<a href="http://Makefile.in" class="">Makefile.in</a><br class="">+index ad6541b..28b5ecb 100644<br class="">+--- a/<a href="http://Makefile.in" class="">Makefile.in</a><br class="">++++ b/<a href="http://Makefile.in" class="">Makefile.in</a><br class="">+@@ -73,7 +73,7 @@ WRAPOBJS=pseudo_wrappers.o<br class="">+ <br class="">+ # needed for anything that links with pseduo_client.o, pretty much<br class="">+ CLIENT_LDFLAGS=-ldl -lpthread<br class="">+-DB_LDFLAGS=@SQLITE_LDARG@ -lpthread<br class="">++DB_LDFLAGS=@SQLITE_LDARG@ -lpthread -lm<br class="">+ <br class="">+ PSEUDO=$(BIN)/pseudo<br class="">+ PSEUDODB=$(BIN)/pseudodb<br class="">+-- <br class="">+2.11.0<br class="">+<br class="">diff --git a/meta/recipes-devtools/pseudo/pseudo_git.bb b/meta/recipes-devtools/pseudo/pseudo_git.bb<br class="">index 79e0b6bd21a..c9a4ecd2e23 100644<br class="">--- a/meta/recipes-devtools/pseudo/pseudo_git.bb<br class="">+++ b/meta/recipes-devtools/pseudo/pseudo_git.bb<br class="">@@ -2,6 +2,7 @@ require pseudo.inc<br class=""><br class=""> SRC_URI = "<a href="git://git.yoctoproject.org/pseudo" class="">git://git.yoctoproject.org/pseudo</a> \<br class=""> <a href="file:///0001-configure-Prune-PIE-flags.patch" class="">file://0001-configure-Prune-PIE-flags.patch</a> \<br class="">+ <a href="file:///libm.patch" class="">file://libm.patch</a> \<br class=""> <a href="file:///fallback-passwd" class="">file://fallback-passwd</a> \<br class=""> <a href="file:///fallback-group" class="">file://fallback-group</a> \<br class=""> <a href="file:///moreretries.patch" class="">file://moreretries.patch</a> \<br class="">-- <br class="">2.11.0<br class=""><br class="">-- <br class="">_______________________________________________<br class="">Openembedded-core mailing list<br class=""><a href="mailto:Openembedded-core@lists.openembedded.org" class="">Openembedded-core@lists.openembedded.org</a><br class="">http://lists.openembedded.org/mailman/listinfo/openembedded-core<br class=""></div></div></blockquote></div><div class=""><br class=""></div><div class="">I digged a bit deeper (since I'd like to get a reasonable solution even for other dependent components) and would say, pseudo will also fail, when sqlite3 is build using readline or libz.</div><div class="">The better option will be to let pseudo use the libs and link-flags from sqlite.pc</div><div class=""><br class=""></div><div class="">Cheers</div><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">-- </div><div class="">Jens Rehsack - <a href="mailto:rehsack@gmail.com" class="">rehsack@gmail.com</a></div></div></div>
</div>
<br class=""></body></html>