On Tue, Jan 2, 2024 at 1:20 PM Vít Ondruch <vondr...@redhat.com> wrote: > > > Dne 28. 12. 23 v 17:12 Aoife Moloney napsal(a): > > The dynamic linker already has the `glibc-hwcaps` mechanism to load > optimized implementations of ''shared objects'' [3]. This means that > packages can provide optimized libraries and they linker will be > automatically load them from separate directories if appropriate. > (For AMD64, this is `/usr/lib64/glibc-hwcaps/x86-64-v{2,3,4}/`.) > > > Is this something specific to x86_64 that the libs needs to be nested in a > place such as `/usr/lib64/glibc-hwcaps/x86-64-v{2,3,4}/`? Why not use e.g. > `/usr/x86-64-v{2,3,4}/lib` directories instead? Or something more universal.
IIRC this is not specific to x86_64 (other arches can also use it). This is specific to glibc implementation (implemented 4 years ago IIRC). The paths glibc dynamic loader looks for shared libraries does not change, but it will check specific subdirectories based on your hardware capabilities. I believe openSUSE already ships optional architecture optimized packages, which use exactly this glibc feature. david > > Vít > > -- > _______________________________________________ > devel mailing list -- devel@lists.fedoraproject.org > To unsubscribe send an email to devel-le...@lists.fedoraproject.org > Fedora Code of Conduct: > https://docs.fedoraproject.org/en-US/project/code-of-conduct/ > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org > Do not reply to spam, report it: > https://pagure.io/fedora-infrastructure/new_issue -- _______________________________________________ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue