Date: Thu, 2 Jan 2020 13:41:02 -0800 From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r356289 - head Message-ID: <29f0fef1-d4e9-38f6-4441-55b397f6fe1f@FreeBSD.org> In-Reply-To: <202001022134.002LYj7M079257@repo.freebsd.org> References: <202001022134.002LYj7M079257@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 1/2/20 1:34 PM, John Baldwin wrote: > Author: jhb > Date: Thu Jan 2 21:34:44 2020 > New Revision: 356289 > URL: https://svnweb.freebsd.org/changeset/base/356289 > > Log: > Look for cross toolchain makefiles in /usr/share/toolchains. > > The freebsd-binutils and freebsd-gcc* packages install toolchain > makefiles to /usr/share/toolchains rather than LOCALBASE. The short version is that you can do something like this to use GCC as the system compiler (/usr/bin/cc): cd /usr/ports/base/binutils ; make install clean cd ../gcc6 ; make install clean Then 'make CROSS_TOOLCHAIN=freebsd-gcc6 buildworld', etc. If you aren't planning on doing cross-builds you can set CROSS_TOOLCHAIN in /etc/src.conf. As described elsewhere, the base/* packages can be cross-built (along with pkg), so for any architectures not yet using clang we could fairly easily provide a cross-built package repo (though that architecture list is becoming rather small). I will probably add a base/gcc9 port once we can build a full system with gcc9. -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?29f0fef1-d4e9-38f6-4441-55b397f6fe1f>