From 80437b731663ec0f6ec13fda01caf61e0e9ff52d Mon Sep 17 00:00:00 2001 From: achernia Date: Wed, 29 Mar 2023 14:50:19 +0300 Subject: [PATCH] fix mayberelsrcdir after gcc folder name change --- Makefile.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index aeb83cb1e91..791fa6a1880 100644 --- a/Makefile.in +++ b/Makefile.in @@ -16,14 +16,14 @@ DEJAGNU_SRCDIR := @with_dejagnu_src@ SIM ?= @WITH_SIM@ -ifeq ($(srcdir)/riscv-gcc,$(GCC_SRCDIR)) +ifeq ($(srcdir)/gcc,$(GCC_SRCDIR)) # We need a relative source dir for the gcc configure, to make msys2 mingw64 # builds work. Mayberelsrcdir is relative if a relative path was used to run # configure, otherwise absolute, so we have to check. mayberelsrcdir := @top_srcdir@ gccsrcdir := $(shell case $(mayberelsrcdir) in \ - ([\\/]* | ?:[\\/]*) echo $(mayberelsrcdir)/riscv-gcc ;; \ - (*) echo ../$(mayberelsrcdir)/riscv-gcc ;; \ + ([\\/]* | ?:[\\/]*) echo $(mayberelsrcdir)/gcc ;; \ + (*) echo ../$(mayberelsrcdir)/gcc ;; \ esac) else gccsrcdir := $(abspath $(GCC_SRCDIR))