Why does linux multiarch use x86_64-linux-gnu instead of lib64?

谁说我不能喝 提交于 2020-01-04 07:26:39

问题


I recently came across multiarch in linux when deploying 32 & 64bit libraries.

Out of curiosity, why was /lib64 abandoned in favour of e.g. /lib/x86_64-linux-gnu It seems overly complex but there must be a reason for that.


回答1:


The long version can be found at http://wiki.debian.org/Multiarch , in particular http://wiki.debian.org/Multiarch/TheCaseForMultiarch .

The short version is that using triplets is a more general solution that allows things like multiple ABI's (such as x86 and x32, as Basile mentioned in a comment), emulators, cross-compilers and such without having to resort to various tricks.

Whether non-Debian based distros such as Fedora or OpenSUSE will adopt this remains to be seen; so far they don't seem that interested.



来源:https://stackoverflow.com/questions/12312053/why-does-linux-multiarch-use-x86-64-linux-gnu-instead-of-lib64

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!