Page MenuHomeFreeBSD

Update base/gcc to work with devel/freebsd-gcc6.
ClosedPublic

Authored by jhb on Nov 28 2019, 5:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 3 2026, 6:56 PM
Unknown Object (File)
Apr 30 2026, 5:48 AM
Unknown Object (File)
Apr 28 2026, 10:37 AM
Unknown Object (File)
Apr 28 2026, 4:26 AM
Unknown Object (File)
Apr 26 2026, 9:37 PM
Unknown Object (File)
Apr 26 2026, 11:30 AM
Unknown Object (File)
Apr 24 2026, 10:57 PM
Unknown Object (File)
Apr 24 2026, 7:04 PM
Subscribers

Details

Summary
  • Explicitly set all the toolchain <foo>_FOR_TARGET variables. GCC's default guess for CC, etc. happened to work with the powerpc64-gcc port, but fails when the binaries have a suffix like the '6' suffix in freebsd-gcc6. Setting these variables explicitly keeps GCC's build from having to guess.
  • Pull patches from freebsd6-gcc instead of powerpc64-gcc.
  • Use per-arch plists.
  • Simplify the post-install steps to keep the hard links the normal install performs and avoid renaming binaries. Keep links to 'cc' and 'c++'.
Test Plan
  • built base/gcc for amd64 (native), i386 and mips (using freebsd6-gcc via CROSS_TOOLCHAIN)

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable