Page MenuHomeFreeBSD

Various fixes to base/binutils and base/gcc6.
ClosedPublic

Authored by jhb on Dec 31 2019, 8:49 PM.
Tags
None
Referenced Files
F168136889: D22984.id66194.diff
Wed, Aug 26, 1:21 PM
F168081532: D22984.id66262.diff
Wed, Aug 26, 7:13 AM
F168074431: D22984.id.diff
Wed, Aug 26, 6:28 AM
F168070920: D22984.diff
Wed, Aug 26, 6:04 AM
Unknown Object (File)
Mon, Aug 17, 7:34 PM
Unknown Object (File)
Sun, Aug 16, 9:23 PM
Unknown Object (File)
Sat, Aug 15, 9:37 PM
Unknown Object (File)
Sat, Aug 15, 7:52 PM
Subscribers

Details

Summary
  • Add --with-sysroot=/ to CONFIGURE_ARGS. base/binutils needs this so that ld honors --sysroot in linker scripts. base/gcc6 needs this so that the C++ include paths honor --sysroot.
  • Remove a hack from GCC's configure to force C++98 mode when building GCC with GCC. libc++ assumes C++11, so this hack was breaking the build of base/gcc6 natively when the system compiler was GCC.
  • Add toolchain makefiles installed to /usr/share/toolchains.

    These are suitable to be used by CROSS_TOOLCHAIN when doing a native arch build. These makefiles enable appropriate knobs so that the in-tree components that are replaced by each package are not built or installed. The freebsd-gcc toolchain makefile includes the binutils toolchain makefile if it is present.
Test Plan
  • native build/installworld cycle using freebsd-binutils and freebsd-gcc6 in an amd64 VM and CROSS_TOOLCHAIN=freebsd-gcc6 set in /etc/src.conf

Diff Detail

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