ports/base/gcc6/files/patch-configure
John Baldwin d7993e8946 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
2020-01-02 19:20:06 +00:00

26 lines
889 B
Text

--- configure.orig 2017-01-09 13:01:26.582656000 -0800
+++ configure 2019-03-26 14:29:44.995174000 -0700
@@ -3717,10 +3717,6 @@ case "${target}" in
*-*-dragonfly*)
;;
*-*-freebsd*)
- if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
- && test -f /usr/local/include/gmp.h; then
- with_gmp=/usr/local
- fi
;;
*-*-kaos*)
# Remove unsupported stuff on all kaOS configurations.
@@ -5450,12 +5446,6 @@ $as_echo "$as_me: WARNING: trying to bootstrap a cross
as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
;;
esac
-
-# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
-# C++98 compiler can still start the bootstrap.
-if test "$enable_bootstrap:$GXX" = "yes:yes"; then
- CXX="$CXX -std=gnu++98"
-fi
# Used for setting $lt_cv_objdir
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5