tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Building NetBSD without gcc



On Mon, Jan 09, 2012 at 10:22:20AM -0600, Daniel Loffgren wrote:
> I have been working on getting NetBSD to compile without gcc, and was
> making good progress on 5.1, but decided to move over to current.

Well, with a few marked exceptions, x86 world builds fine with clang.
No idea about the state of PCC.

> However, when setting CC in a (for example, the kernel) makefile in
> current, it just gets ignored and gcc gets used regardless. I noticed
> that /usr/share/mk/bsd.own.mk now has some TOOL_CC variables for
> various compilers, and found some mention of it on the mailing lists,
> but how is this meant to be used? Should variables like CC be
> completely thrown out by the user? What if they want to use a compiler
> that isn't on this TOOL_CC list?

You can easily add your own by overwriting AVAILABE_COMPILER (make sure
it always contains "false") and adding the appropiate TOOL_*.foo
entries.

Joerg


Home | Main Index | Thread Index | Old Index