sys-libs/tdb: always pass -Wl,--undefined-version if supported

otherwise, for example, lld will report:

> ld.lld: error: version script assignment of 'TDB_1.2.1' to symbol 'tdb_do_delete' failed: symbol not defined
> ld.lld: error: version script assignment of 'local' to symbol '_end' failed: symbol not defined
> ld.lld: error: version script assignment of 'local' to symbol '__bss_start' failed: symbol not defined
> ld.lld: error: version script assignment of 'local' to symbol '_edata' failed: symbol not defined

Closes: https://bugs.gentoo.org/914857
Signed-off-by: Z. Liu <zhixu.liu@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/43064
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Z. Liu
2025-07-19 20:40:16 +08:00
committed by Sam James
parent 019431fffc
commit ff7e542ec0
2 changed files with 6 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ EAPI=8
PYTHON_COMPAT=( python3_{10..13} )
PYTHON_REQ_USE="threads(+)"
inherit waf-utils multilib-minimal python-single-r1
inherit waf-utils multilib-minimal python-single-r1 flag-o-matic
DESCRIPTION="Simple database API"
HOMEPAGE="https://tdb.samba.org/"
@@ -60,6 +60,8 @@ multilib_src_configure() {
extra_opts+=( --disable-python )
fi
append-ldflags $(test-flags-CCLD -Wl,--undefined-version) # bug 914857
waf-utils_src_configure "${extra_opts[@]}"
}

View File

@@ -5,7 +5,7 @@ EAPI=8
PYTHON_COMPAT=( python3_{10..13} )
PYTHON_REQ_USE="threads(+)"
inherit waf-utils multilib-minimal python-single-r1
inherit waf-utils multilib-minimal python-single-r1 flag-o-matic
DESCRIPTION="Simple database API"
HOMEPAGE="https://tdb.samba.org/"
@@ -60,6 +60,8 @@ multilib_src_configure() {
extra_opts+=( --disable-python )
fi
append-ldflags $(test-flags-CCLD -Wl,--undefined-version) # bug 914857
waf-utils_src_configure "${extra_opts[@]}"
}