On Sat, 2019-08-24 at 18:31 +0100, Robert Swindells wrote:
> Tobias Nygren <tnn%NetBSD.org@localhost> wrote:
> > On Fri, 23 Aug 2019 23:23:22 +0100
> > Robert Swindells <rjs%fdy2.co.uk@localhost> wrote:
> >
> > > How does the configuration Triple for llvm get setup ?
> > >
> > > I have been trying to use lld from pkgsrc and it fails to run because
> > > the isOSNetBSD() test returns false. Adding some debug to print out
> > > the configuration string just returns "unknown".
> > >
> > > Does the native copy of llvm get this correct ? If so, are there patches
> > > that we should be adding to pkgsrc ?
> >
> > llvm does this by running config.guess from cmake and reading the result.
> > But, because it is a cmake package and not a GNU autoconf package
> > the pkgsrc CONFIG_{GUESS,SUB}_OVERRIDE logic does not kick in.
> >
> > in the last part of pkgsrc/lang/llvm/Makefile there is a snippet
> > which manually overrides config.guess with the pkgsrc one which
> > is supposed to have correct platform detection.
>
> Thanks, pkgsrc/llvm does seem to be fine.
>
> There is a bug in pkgsrc lld, I have a fix for it.
If you mean adding CONFIG_{GUESS,SUB}_OVERRIDE, then you've got my
blessing. I'm not really sure why it worked for me though.
--
Best regards,
Michał Górny
Attachment:
signature.asc
Description: This is a digitally signed message part