Skip to contentSkip to conversation

openconnect: fix do_compile failure

PATCH New Chen Qi 1 participant 1 message May 12, 2016

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

PATCH 1/1 openconnect: fix do_compile 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

The problem is that version.c needs to be there when building some objects which needs main.c. But version.c depends on main.c and is generated at build time.

This patch fix the problem by generating version.c first before building others.

---
 meta-networking/recipes-connectivity/openconnect/openconnect_git.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-networking/recipes-connectivity/openconnect/openconnect_git.bb +4 -0
index 6d3c252..71a8ca0 100644
@@ -16,3 +16,7 @@ inherit autotools pkgconfig
 
 EXTRA_OECONF += "--with-vpnc-script=${SYSROOT_DESTDIR}${sysconfdir}/vpnc/vpnc-script \
                  --disable-static"
+
+do_compile_prepend() {
+    make version.c
+}
Signature · 1 line
2.8.1