diff mbox series

[wrynose,meta-oe,14/45] libcdio-paranoia: Enable linker version script explicitly

Message ID 20261201064402.3934788-14-anuj.mittal@oss.qualcomm.com
State Under Review
Delegated to: Anuj Mittal
Headers show
Series [wrynose,meta-networking,01/45] proftpd: upgrade 1.3.9d -> 1.3.9e | expand

Commit Message

Anuj Mittal Dec. 1, 2026, 6:43 a.m. UTC
From: Khem Raj <khem.raj@oss.qualcomm.com>

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>
(cherry picked from commit a433a50b22627a5d5fcc5a8385b231481729b307)
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
---
 .../recipes-multimedia/libcdio/libcdio-paranoia_10.2+2.0.2.bb   | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-multimedia/libcdio/libcdio-paranoia_10.2+2.0.2.bb b/meta-oe/recipes-multimedia/libcdio/libcdio-paranoia_10.2+2.0.2.bb
index b880f3f090..3fbd40e7e2 100644
--- a/meta-oe/recipes-multimedia/libcdio/libcdio-paranoia_10.2+2.0.2.bb
+++ b/meta-oe/recipes-multimedia/libcdio/libcdio-paranoia_10.2+2.0.2.bb
@@ -15,6 +15,8 @@  UPSTREAM_CHECK_REGEX = "release-(?P<pver>\d+(\.\d+)+\+\d+(\.\d+)+)"
 
 inherit autotools pkgconfig github-releases
 
+EXTRA_OECONF += "--enable-ld-version-script"
+
 PACKAGES += "${PN}-utils"
 
 FILES:${PN} = "${libdir}/${BPN}${SOLIB}"