File:  [NetBSD Developer Wiki] / wikisrc / tutorials / pkgsrc / clang.mdwn
Revision 1.9: download - view: text, annotated - select for diffs
Wed Nov 7 07:05:07 2018 UTC (18 months, 2 weeks ago) by wiki
Branches: MAIN
CVS tags: HEAD
web commit by maya: Collapse entire "clang from base" into a link, that page now suggests mk.conf for both pkgsrc and base.

    1: # Using clang from the base system
    2: 
    3: See [clang and the base system](../../clang/).
    4: 
    5: # Using clang from pkgsrc
    6: 
    7: You can build clang from pkgsrc (lang/clang).  However, it needs
    8: libstdc++ from the base system, and needs gcc 4.8 or higher.  It also
    9: depends on cmake, which requires c++11, which needs gcc 4.8 or higher.
   10: So this will not work on NetBSD <= 6.
   11: 
   12: Once built, you should (\todo test this) be able to set:
   13: 
   14:     PKGSRC_COMPILER=       clang
   15:     CLANGBASE=             /usr/pkg
   16: 
   17: and perhaps
   18: 
   19:     HAVE_LLVM=             yes
   20: 
   21: The caveats above about using a consistent compiler apply.

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb