On Thu, Nov 4, 2010 at 8:38 PM, Paul Davey <plmdvy@xxxxxxxxx> wrote: > On Thu, Nov 4, 2010 at 10:37 PM, Ingo Weinhold <ingo_weinhold@xxxxxx> wrote: >> On 2010-11-04 at 06:37:24 [+0100], Paul Davey <plmdvy@xxxxxxxxx> wrote: >>> I have noticed that relatively recently the files from glibc that >>> implement these functions (__cxa_atexit and __cxa_finalize) were >>> removed from the tree, they weren't used anyway but i was going to try >>> and have them build to get these functions in libroot for testing. >>> Does anyone have any advice on what I could do to get implementations >>> of them in libroot, either ones from the glibc we use bits of or >>> elsewhere? >> >> I'll see, if I can implement them today. >> >> CU, Ingo >> >> > > Thank you for doing this Ingo, clang can now be used without the > -fno-use-cxa-atexit flag and my small test program worked (it does > make use of these so I know they work) I am building clang itself now > to check a bigger program. > Now the only obvious thing that stands in the way of reasonably smooth > clang use of haiku out of the box is this ticket > https://dev.haiku-os.org/ticket/6230 which I have made a patch for, > the patch makes the correct method also be used for gcc4. > Thank you again for your work on this. > > Paul Davey > > What about #6389 and #6269? Are these also needed to get things working with clang? Perhaps someone can check over the patches and apply them if they are ok? -scottmc