]> git.ipfire.org Git - thirdparty/util-linux.git/commit
Conditionally add uuid_time64 to sym. version map
authorNicholas Vinson <nvinson234@gmail.com>
Wed, 15 May 2024 15:14:54 +0000 (11:14 -0400)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 1 Jul 2024 19:54:41 +0000 (21:54 +0200)
commit23db938ce9bca73025e2838a6ffc30016ba1f4e2
tree71b0cc42ad025203e84999ea9ca17d42e4f654e2
parent25bd5396ab700623134b491f42a3280556cb674c
Conditionally add uuid_time64 to sym. version map

The symbol uuid_time64 is conditionally defined. It only exists on
32-bit platforms that use the glibc library and enable support for
the 64-bit time_t type.

For all other platforms, the symbol is undefined. As a result, when
ld.lld version 17 or newer is used with default flags, ld.lld will
reject the symbol map with the error:

    version script assignment of 'UUID_2.40' to symbol 'uuid_time64'
    failed: symbol not defined

To fix this issue, the reference to uuid_time64 is changed to
uuid_time64*. The change to a glob pattern satisifies ld.lld and allows
the library to link.

fixes util-linux/util-linux#3036
fixes Gentoo bug #931328

Signed-off-by: Nicholas Vinson <nvinson234@gmail.com>
(cherry picked from commit 86d3f3f03231d25f9cbf18d83aeeccd2225dd246)
libuuid/src/libuuid.sym