Diff for /wikisrc/tutorials/pkgsrc/clang.mdwn between versions 1.2 and 1.3

version 1.2, 2017/12/04 00:43:22 version 1.3, 2017/12/30 17:51:05
Line 1 Line 1
   # Using clang from the base system
   
 When building NetBSD, you can set  When building NetBSD, you can set
   
     MKLLVM=yes      MKLLVM=yes
Line 18  When you have a NetBSD compiled this way Line 20  When you have a NetBSD compiled this way
 in your /etc/mk.conf to use it. You must do that before building  in your /etc/mk.conf to use it. You must do that before building
 packages, especially libtool. It's usually fine to link binaries  packages, especially libtool. It's usually fine to link binaries
 generated from gcc to those generated with clang or vice versa.  generated from gcc to those generated with clang or vice versa.
   
   \todo: Explain why HAVE_LLVM is set to use clang for pkgsrc.
   
   # Using clang from pkgsrc
   
   You can build clang from pkgsrc (lang/clang).  However, it need
   libstdc++ from the base system, and thus this will only work on
   systems that natively have gcc if the version is 4.8 or higher.
   
   Once built, you should (\todo test this) be able to set:
   
       PKGSRC_COMPILER=       clang
       CLANGBASE=             /usr/pkg
   
   The caveats above about using a consistent compiler apply.

Removed from v.1.2  
changed lines
  Added in v.1.3


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