base/*: Remove the base ports to install an external toolchain in /usr.
This was originally motivated for providing a native toolchain for
platforms not supported by the in-tree LLVM toolchain. Now, however,
all of our current platforms are well supported by the in-tree LLVM
toolchain. In addition, these ports required additional maintenance
beyond the existing devel/binutils and devel/freebsd-gccX ports. A
more sustainable path if we need this in the future is probably to
have simple wrappers for /usr/bin/cc and other binaries in /usr that
redirect to binaries provided by the existing devel/ ports.
Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D38561
Various fixes to base/binutils and base/gcc6.
- 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.
Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D22984
Rename base/gcc to base/gcc6.
This is in preparation for adding a base/gcc9 port.
While here, update to GCC 6.5.0.
Share packing lists with the freebsd-gcc6 port as much as posible.
Split most of the freebsd-gcc6 pkg-plist into a pkg-plist.common that
lists arch-independent files under lib/. Change base/gcc6 to use the
arch-specific packing lists and pkg-list.common from freebsd-gcc6. In
addition, hook up packing lists for the remaining archs supported by
freebsd-gcc6 but not base/gcc6: aarch64 and sparc64.
Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D22900