[oe] [meta-oe][PATCH] uw-imap: use cross-tools to create static library
S. Lockwood-Childs
sjl at vctlabs.com
Fri Jul 15 07:46:54 UTC 2016
Build was failing with complaint:
../c-client/c-client.a: error adding symbols: Archive has no index; run
ranlib to add one
Turns out build was using host tools for 'ar' and 'ranlib'. Solved by
overriding ARRC ('ar' with -rc) and RANLIB on the make command-line,
as was already being done for CC.
Signed-off-by: S. Lockwood-Childs <sjl at vctlabs.com>
---
meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb b/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb
index 52b689e..402c42e 100644
--- a/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb
+++ b/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb
@@ -20,7 +20,7 @@ S = "${WORKDIR}/imap-${PV}"
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}"
PACKAGECONFIG[pam] = ",,libpam"
-EXTRA_OEMAKE = "CC='${CC}'"
+EXTRA_OEMAKE = "CC='${CC}' ARRC='${AR} -rc' RANLIB='${RANLIB}'"
HEADERS = "src/c-client/*.h src/osdep/unix/*.h c-client/auths.c c-client/linkage.c c-client/linkage.h c-client/osdep.h"
--
2.9.0
More information about the Openembedded-devel
mailing list