[oe] [meta-networking][PATCH] openconnect: fix parallel compilation failure
Qi.Chen at windriver.com
Qi.Chen at windriver.com
Wed Aug 23 10:08:43 UTC 2017
From: Chen Qi <Qi.Chen at windriver.com>
This patch solves the following error which appears now and then because of
parallel building.
../git/main.c:78:21: fatal error: version.c: No such file or directory
version.c is generated at build time. And it's needed by some objects. So
it needs to be generated first to avoid compilation failure.
This patch fix the problem by generating version.c first before building others.
Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
---
meta-networking/recipes-connectivity/openconnect/openconnect_git.bb | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta-networking/recipes-connectivity/openconnect/openconnect_git.bb b/meta-networking/recipes-connectivity/openconnect/openconnect_git.bb
index 3a1f0f3..4242aa5 100644
--- a/meta-networking/recipes-connectivity/openconnect/openconnect_git.bb
+++ b/meta-networking/recipes-connectivity/openconnect/openconnect_git.bb
@@ -25,3 +25,7 @@ inherit autotools pkgconfig
EXTRA_OECONF += "--with-vpnc-script=${SYSROOT_DESTDIR}${sysconfdir}/vpnc/vpnc-script \
--disable-static"
+
+do_compile_prepend() {
+ make version.c
+}
--
1.9.1
More information about the Openembedded-devel
mailing list