public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] sim: use program_transform_name for libsim
@ 2021-11-19  0:58 Mike Frysinger
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2021-11-19  0:58 UTC (permalink / raw)
  To: gdb-patches

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 9274c65f8c6c..7f240240474c 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"; \
-- 
2.33.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-19  0:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-19  0:58 [PATCH] sim: use program_transform_name for libsim Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).