svn commit: r356289 - head

John Baldwin jhb at FreeBSD.org
Thu Jan 2 21:41:07 UTC 2020


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


More information about the svn-src-all mailing list