package/crun: fix musl and uclibc-ng builds

Fix the following musl and uclibc-ng build failures raised since the
addition of the package in commit
530d6f661e:

configure: error: *** argp functions not found - install libargp or argp_standalone

Fixes:
 - http://autobuild.buildroot.org/results/55b283fa46a797253193fb752638ba88597a416b

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Fabrice Fontaine 2022-11-06 11:53:09 +01:00 committed by Yann E. MORIN
parent 0fc1bf137e
commit 0d9f268424
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,6 @@
config BR2_PACKAGE_CRUN
bool "crun"
select BR2_PACKAGE_ARGP_STANDALONE if BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_MUSL
select BR2_PACKAGE_YAJL # libocispec
help
crun is a fast and low-memory OCI Container Runtime in C.

View File

@ -15,6 +15,10 @@ CRUN_CPE_ID_VENDOR = crun_project
CRUN_AUTORECONF = YES
CRUN_CONF_OPTS = --disable-embedded-yajl
ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
CRUN_DEPENDENCIES += argp-standalone
endif
ifeq ($(BR2_PACKAGE_LIBCAP),y)
CRUN_DEPENDENCIES += libcap
CRUN_CONF_OPTS += --enable-caps