]> code.ossystems Code Review - openembedded-core.git/commit
libcap: Configure Make variables correctly without a horrible hack
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Fri, 7 May 2021 20:38:30 +0000 (22:38 +0200)
committerAnuj Mittal <anuj.mittal@intel.com>
Tue, 11 May 2021 05:16:37 +0000 (13:16 +0800)
commit44900610bea76ab8983a899599f78790f6c5f659
tree77c4fb06b85d5a56bb4b2f17176b21a523fd1be2
parent86bcab9e9f4ee5e06f7db8c75d4b983fd2be59d2
libcap: Configure Make variables correctly without a horrible hack

Occasionally, the build would fail with:

  make[2]: execvp: mkdir: Argument list too long

This turned out to be due to a hacky solution used in the recipe to
modify the Makefile, which resulted in one more $(BUILD_CFLAGS) being
added to the immediately expanded BUILD_CFLAGS Make variable each time
do_configure was executed. After a couple of times, this lead to an
environment with a 140 kB BUILD_CFLAGS when mkdir should execute, which
resulted in the E2BIG.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 116e6b61c585c6f0f7ae6f010bd490bb39914348)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/recipes-support/libcap/libcap_2.48.bb