From fccf4ba5adaf69cac1875a194d8ee99dabf50c70 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 18 Nov 2021 19:56:45 -0500 Subject: [PATCH] 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. --- sim/common/Make-common.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; \