Gentoo Archives: gentoo-musl

From: Jens Staal <staal1978@×××××.com>
To: Luca Barbato <lu_zero@g.o>
Cc: "Michał Górny" <mgorny@g.o>, gentoo-musl <gentoo-musl@l.g.o>, llvm@g.o
Subject: [gentoo-musl] Re: Self-hosting Clang-based (libc++, musl libc) stage4
Date: Mon, 08 May 2017 11:01:56
Message-Id: 20170508110048.GA681@Krypton.localdomain
1 On Sun, May 07, 2017 at 02:08:03PM +0200, Luca Barbato wrote:
2 > On 5/7/17 11:19 AM, Jens Staal wrote:
3 > > On Sun, May 07, 2017 at 09:27:41AM +0200, Michał Górny wrote:
4 > >> On nie, 2017-05-07 at 08:05 +0200, Jens Staal wrote:
5 > >>> - it would be really cool if an "official" custom crt package for
6 > >>> llvm/clang could be in portage
7 > >>>
8 > >>
9 > >> This is something I really look forward to adding. Any suggestion on
10 > >> which crt implementation to use?
11 > >>
12 > >> I know that glibc provides crt1/i/n. Does musl provide them too, or does
13 > >> it need a more complete crt* set?
14 > >>
15 > >> --
16 > >> Best regards,
17 > >> Michał Górny
18 > >
19 > > musl itself does not provide crt* as far as I know, but I downloaded the
20 > > relevant files from ELLCC, which is a musl/libc++ LLVM/clang toolchain
21 > >
22 > > http://ellcc.org/viewvc/svn/ellcc/trunk/libecc/src/musl/crt/
23 > >
24 > > Those crt files originate from NetBSD and googling for crt
25 > > implementations often point to the NetBSD variants as drop-in
26 > > replacements of libgcc.
27 > >
28 > >
29 >
30 > IIRC during the GSoC the netbsd crt is the one that was used. I'd check
31 > how hard is to package it properly.
32 >
33 > lu
34
35 I uploaded a slightly modified version of the files I have in
36 /usr/local/hack/crt on github
37
38 https://github.com/staalmannen/llvm-crt-replacement
39
40 is this sufficient for packaging?