mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-11-13 03:37:15 +00:00
libkcapi: Fix build with lld
The version script lists all APIs, including the asymmetric cipher and KPP ones that are only built with --enable-lib-asym/--enable-lib-kpp, so lld fails with: error: version script assignment of 'LIBKCAPI_0.12.0' to symbol 'kcapi_akcipher_init' failed: symbol not defined Upstream prefers to keep a single version script for all configurations [1], so allow undefined versioned symbols with lld. [1] https://github.com/smuellerDD/libkcapi/issues/191 AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
1 file changed
+3
@@ -11,6 +11,9 @@ inherit autotools
|
||||
|
||||
CACHED_CONFIGUREVARS += "ac_cv_prog_cc_c23=no"
|
||||
|
||||
# The version script lists the APIs that can be disabled at configure time
|
||||
LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -Wl,--undefined-version', '', d)}"
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG[testapp] = "--enable-kcapi-test,,,bash"
|
||||
PACKAGECONFIG[apps] = "--enable-kcapi-speed --enable-kcapi-hasher --enable-kcapi-rngapp --enable-kcapi-encapp --enable-kcapi-dgstapp,,,"
|
||||
|
||||
Reference in new issue
Block a user