Page MenuHomeFreeBSD

Look for cross toolchain makefiles in /usr/share/toolchains.

Authored by jhb on Dec 31 2019, 8:51 PM.



The freebsd-binutils and freebsd-gcc* packages install toolchain
makefiles to /usr/share/toolchains rather than LOCALBASE.

Test Plan
  • native build/install of world/kernel in an amd64 VM using freebsd-binutils and freebsd-gcc6 as the toolchain from base/* packages

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jhb created this revision.Dec 31 2019, 8:51 PM
jhb added a comment.Dec 31 2019, 8:54 PM

This change and D22984 replace the older D19482 and D19720. D19482 had issues with cross-building, etc. so instead of making it automagical, this approach requires users to use an explicit CROSS_TOOLCHAIN setting. Users can set that in /etc/src.conf if they are not planning on doing cross-builds and only hosted, native builds in which case one can use 'make buildworld' etc. fairly transparently. The usage is 'make CROSS_TOOLCHAIN=freebsd-gcc6' or eventually 'make CROSS_TOOLCHAIN=freebsd-gcc9' once the base/gcc9 port is ready.

bapt accepted this revision.Jan 1 2020, 10:06 PM
This revision is now accepted and ready to land.Jan 1 2020, 10:06 PM
This revision was automatically updated to reflect the committed changes.