diff mbox series

[oe,meta-oe] redis: Fix ocasional parallel build failure

Message ID 20190407000633.38920-1-raj.khem@gmail.com
State Accepted
Commit 5ec597d83923f3c2f3643df56a6f80ee8ccdbf42
Headers show
Series [oe,meta-oe] redis: Fix ocasional parallel build failure | expand

Commit Message

Khem Raj April 7, 2019, 12:06 a.m. UTC
Sometimes with high parallel build we see compile errors e.g.

clang-8: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [Makefile:52: lua] Error 1

Therefore try to build dependencies before main build

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta-oe/recipes-extended/redis/redis_4.0.12.bb | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.21.0

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox series

Patch

diff --git a/meta-oe/recipes-extended/redis/redis_4.0.12.bb b/meta-oe/recipes-extended/redis/redis_4.0.12.bb
index af99537f52..2e54f665d2 100644
--- a/meta-oe/recipes-extended/redis/redis_4.0.12.bb
+++ b/meta-oe/recipes-extended/redis/redis_4.0.12.bb
@@ -31,6 +31,10 @@  GROUPADD_PARAM_${PN} = "--system redis"
 
 REDIS_ON_SYSTEMD = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}"
 
+do_compiler_prepend() {
+    (cd deps && oe_runmake hiredis lua jemalloc linenoise)
+}
+
 do_install() {
     export PREFIX=${D}/${prefix}
     oe_runmake install