File:  [NetBSD Developer Wiki] / wikisrc / tutorials / Attic / pkgsrc_clang.mdwn
Revision 1.1: download - view: text, annotated - select for diffs
Thu Jul 18 22:34:55 2013 UTC (4 years, 11 months ago) by wiki
Branches: MAIN
CVS tags: HEAD
web commit by wiz

When building NetBSD, you can set


to also build clang and install it, and additionally


if you want to use it to compile NetBSD itself during

When you have a NetBSD compiled this way, you can set

    PKGSRC_COMPILER=       clang
    CLANGBASE=             /usr

in your /etc/mk.conf to use it. You must do that before building
packages, especially libtool. It's usually fine to link binaries
generated from gcc to those generated with clang or vice versa.

CVSweb for NetBSD wikisrc <> software: FreeBSD-CVSweb