Re: Possible to replace gcc-runtime libraries & libgcc #gplv3 #yocto #llvm

Khem Raj

On Tue, Jan 17, 2023 at 10:17 AM William Huang <whuang8933@...> wrote:

Hello all,
I'm in the process of generating an image without GPLv3 software. I have removed everything but the gcc-runtime and libgcc libraries. These are gpl-3.0 with GCC exception. I'm not sure how feasible it is to remove these or replace them with llvm replacements. Just wondering if anyone had been down this path before and if you can share your experience that would be great!
You can do it to certain extent with meta-clang. Select RUNTIME =
"llvm" in local.conf after including it. However, this is not going to
be drop-in replacement due to some packages ( e.g. glibc )
still not buildable with llvm + llvm-runtime and there are more
components depending upon what you distro uses it might be more to
consider. Its perhaps easier to get C++ runtime using libc++
than say replacing libgcc and crt init files, which might need more work.


Join to automatically receive all group messages.