From b04d96cec172fa09b5cc237f6646e733995ecc15 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Wed, 23 Aug 2017 18:08:43 +0800 Subject: openconnect: fix parallel compilation failure 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 Signed-off-by: Martin Jansa --- 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 3a1f0f30f0..4242aa5538 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 +} -- cgit 1.2.3-korg