> -----Original Message-----
> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com]
> Sent: Thursday, July 17, 2014 3:23 AM
> To: Richardson, Bruce
> Cc: dev at dpdk.org
> Subject: Re: [dpdk-dev] [PATCH 5/6] mk: add toolchain for clang and linuxapp
> target
> 
> 2014-07-08 00:36, Bruce Richardson:
> > --- /dev/null
> > +++ b/mk/toolchain/clang/rte.vars.mk
> [...]
> > +ifeq ($(KERNELRELEASE),)
> > +CC        = $(CROSS)clang
> > +else
> > +CC        = $(CROSS)gcc
> > +endif
> 
> Why not use clang for FreeBSD modules?
> This page seems to encourage clang:
>       https://wiki.freebsd.org/BuildingFreeBSDWithClang
> 
> --
That is  an interesting one.

That branch is only really applicable for Linux. In the BSD modules makefile we 
explicitly unexport CC to allow the build system to use its own default. BSD 9 
defaults to using gcc 4.2, and BSD 10 to clang, so this is probably the best 
approach, leaving the result in the hands of the user. Obviously this won't 
work with cross-compiling to BSD, but I don't think that is a scenario we 
support right now anyway.

/Bruce

Reply via email to