Page MenuHomeFreeBSD

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

Authored by jhb on Dec 31 2019, 8:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 23, 10:53 AM
Unknown Object (File)
Fri, Mar 29, 8:03 PM
Unknown Object (File)
Jan 9 2024, 3:37 AM
Unknown Object (File)
Jan 3 2024, 10:38 PM
Unknown Object (File)
Jan 3 2024, 10:38 PM
Unknown Object (File)
Jan 3 2024, 10:38 PM
Unknown Object (File)
Jan 3 2024, 10:27 PM
Unknown Object (File)
Dec 20 2023, 4:43 AM
Subscribers

Details

Summary

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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

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.

This revision is now accepted and ready to land.Jan 1 2020, 10:06 PM