| Message ID | 20261110070017.3292688-1-khem.raj@oss.qualcomm.com |
|---|---|
| State | Under Review |
| Headers | show |
| Series | libfaketime: Fix build with lld | expand |
diff --git a/meta/recipes-support/libfaketime/libfaketime_0.9.13.bb b/meta/recipes-support/libfaketime/libfaketime_0.9.13.bb index 7280d58cd3..bcbf53181f 100644 --- a/meta/recipes-support/libfaketime/libfaketime_0.9.13.bb +++ b/meta/recipes-support/libfaketime/libfaketime_0.9.13.bb @@ -11,6 +11,9 @@ SRC_URI = "git://github.com/wolfcw/libfaketime.git;branch=master;tag=v${PV};prot file://0001-Mark-write-only-real_-pointers-as-unused.patch \ " +# The version script names the symbols that are defined with .symver +LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -Wl,--undefined-version', '', d)}" + do_install () { install -d ${D}${libdir}/faketime oe_libinstall -C src libfaketime ${D}${libdir}/faketime
The version script names symbols that are only defined through .symver, so lld fails with: error: version script assignment of 'GLIBC_2.2' to symbol 'timer_gettime' failed: symbol not defined Allow undefined versioned symbols with lld, the .symver definitions still get the expected versions. Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- meta/recipes-support/libfaketime/libfaketime_0.9.13.bb | 3 +++ 1 file changed, 3 insertions(+)