sim: use program_transform_name for libsim
authorMike Frysinger <vapier@gentoo.org>
Fri, 19 Nov 2021 00:56:45 +0000 (19:56 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 19 Nov 2021 00:56:45 +0000 (19:56 -0500)
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

index 9274c65f8c6c22168b4e2fa25cb75ef07805109e..7f240240474cbea13fba9fbecba81018ec166bf0 100644 (file)
@@ -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"; \