--- wikisrc/tutorials/clang.mdwn 2018/11/07 06:56:34 1.8 +++ wikisrc/tutorials/clang.mdwn 2018/11/07 06:59:14 1.9 @@ -5,6 +5,7 @@ To use it, set in mk.conf. MKGCC=no MKLLVM=yes HAVE_LLVM=yes + PKGSRC_COMPILER=clang CLANGBASE=/usr And run "build.sh release". This will apply for both pkgsrc and base. @@ -13,9 +14,10 @@ And run "build.sh release". This will ap tunable | explanation -----------------------|---------------------------------------------------- -MKGCC=no | needed as building GCC alongside is not maintained. -MKLLVM=yes | builds LLVM libraries. -HAVE_LLVM=yes | controls clang being built +MKGCC=no | needed as building GCC alongside is not maintained +MKLLVM=yes | builds LLVM libraries +HAVE_LLVM=yes | controls clang being built +PKGSRC_COMPILER=clang | instructs pkgsrc it's clang CLANGBASE=/usr | instructs pkgsrc where to look for the compiler # status