diff mbox series

[2/5] libidn2: Enable linker version script explicitly

Message ID 20261118145502.3243739-2-khem.raj@oss.qualcomm.com
State New
Headers show
Series [1/5] libtasn1: Enable linker version script explicitly | expand

Commit Message

Khem Raj Nov. 18, 2026, 2:54 p.m. UTC
configure's linker version script check links an empty program with a
script that assigns versions to an undefined symbol 'sym'. lld defaults to
--no-undefined-version and rejects it, so with ld-is-lld configure
decides version scripts are unsupported and the library is built without
any symbol versions, silently changing its ABI. Consumers linked earlier
against the versioned library then fail file-rdeps QA, e.g. openldap:

  libldap.so.2 requires libgnutls.so.30(GNUTLS_3_4)(64bit), but no
  providers found in RDEPENDS:openldap? [file-rdeps]

Every supported linker handles version scripts, so enable them
explicitly instead of relying on the broken probe.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta/recipes-extended/libidn/libidn2_2.3.8.bb | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta/recipes-extended/libidn/libidn2_2.3.8.bb b/meta/recipes-extended/libidn/libidn2_2.3.8.bb
index 37703aa929..44e6c76c6b 100644
--- a/meta/recipes-extended/libidn/libidn2_2.3.8.bb
+++ b/meta/recipes-extended/libidn/libidn2_2.3.8.bb
@@ -19,6 +19,7 @@  DEPENDS = "virtual/libiconv libunistring"
 inherit pkgconfig autotools gettext texinfo gtk-doc lib_package
 
 EXTRA_OECONF += "--disable-rpath \
+                 --enable-ld-version-script \
                  --with-libunistring-prefix=${STAGING_EXECPREFIXDIR} \
                  "