Add support for musl-libc on Linux

Lei Zhang via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 11 00:14:38 PDT 2016


Hi,

The first patch introduces musl as a new environment type in LLVM; the
second helps clang to find musl's dynamic linker, which has a
different naming scheme from glibc's.

The two patches together enable clang to support targets like
"x86_64-pc-linux-musl" and build binaries against musl-libc instead of
glibc. This make it easy for clang to work on some musl-based systems
like Alpine Linux and certain flavors of Gentoo.


Regards,
Lei
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-musl.patch
Type: application/octet-stream
Size: 1029 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160611/22508f12/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-musl.patch
Type: application/octet-stream
Size: 502 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160611/22508f12/attachment-0003.obj>


More information about the cfe-commits mailing list