From: Mike Frysinger Date: Fri, 19 Nov 2021 00:56:45 +0000 (-0500) Subject: sim: use program_transform_name for libsim X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fccf4ba5adaf69cac1875a194d8ee99dabf50c70;p=binutils-gdb.git sim: use program_transform_name for libsim Instead of always using target_alias as a prefix on the name, use program_transform_name instead so that the library is scoped in the same way as the run program. --- diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in index 9274c65f8c6..7f240240474 100644 --- a/sim/common/Make-common.in +++ b/sim/common/Make-common.in @@ -479,7 +479,7 @@ install-common: installdirs n=`echo run | sed '$(program_transform_name)'`; \ [ "$(SIM_PRIMARY_TARGET)" = "$$a" ] || n="$$n-$$a"; \ $(INSTALL_PROGRAM) run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT) - n="$(target_alias)-sim"; \ + n=`echo sim | sed '$(program_transform_name)'`; \ a=`basename "$$(pwd)"`; \ [ "$(SIM_PRIMARY_TARGET)" = "$$a" ] || n="$$n-$$a"; \ n="lib$$n.a"; \