Talk:C

From ArchWiki
Latest comment: 2 August 2023 by Neko-san in topic Setting Up Musl with Makepkg.conf

Setting Up Musl with Makepkg.conf

I wanted to request that someone include information with how you would use musl with clang and llvm in makepkg.conf; the package, as it currently is, focuses on C (of course) and provides a linker "ld.musl-clang" but doesn't seem to account for users setting "-fuse-ld=musl-clang" as an LDFLAG because this gets in the way of C++ projects expecting something like lld or mold to be set instead. Ideally, one should not have to swap this in and out every time a user wants to build something, so I'm hoping there's a better solution that can be clarified on the wiki. Attempting to do so without this knowledge additionally causes projects to throw cmake errors with messages like: "/usr/bin/ld: cannot find -lc++abi: No such file or directory" even if such things are installed.

--Neko-san (talk) 00:40, 2 August 2023 (UTC)Reply