https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119729

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to mcccs from comment #4)
> Suggested patch:
> 
> +if test $srcdir = . ; then
> +  AC_MSG_ERROR([building in the top level project directory is not
> supported. Please change the current directory to a new directory (can be a
> new subdirectory of the project root)])
> +fi
> 
> just above "# Find the build and target subdir names." in top-level
> configure.ac

Since gcc, gdb and binutils (and newlib though not updated as much IIRC) all
share the same toplevel configure, you need to check with gdb and binutils
folks also if that is acceptable; otherwise you need to add a check to see if
the gcc directory exists too.

Reply via email to