* [PATCH] sim: use libtool to install programs
@ 2022-11-05 13:29 Mike Frysinger
0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2022-11-05 13:29 UTC (permalink / raw)
To: gdb-patches
Now that we use libtool to link, we have to use it to install instead
of keeping the manual logic so we don't install wrapper shell scripts.
---
sim/Makefile.am | 3 ++-
sim/Makefile.in | 5 +++--
sim/erc32/local.mk | 2 +-
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/sim/Makefile.am b/sim/Makefile.am
index 64847bc7abb3..fb28f98ece70 100644
--- a/sim/Makefile.am
+++ b/sim/Makefile.am
@@ -214,7 +214,8 @@ install-exec-local: installdirs $(SIM_INSTALL_EXEC_LOCAL_DEPS)
if [ -e $$d/run$(EXEEXT) ]; then \
n="$$run"; \
[ "$(SIM_PRIMARY_TARGET)" = "$$d" ] || n="$$n-$$d"; \
- $(INSTALL_PROGRAM) $$d/run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT) || exit 1; \
+ $(LIBTOOL) --mode=install \
+ $(INSTALL_PROGRAM) $$d/run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT) || exit 1; \
fi; \
done
diff --git a/sim/erc32/local.mk b/sim/erc32/local.mk
index d73bc5b4bfef..1c6f7b3dbbd9 100644
--- a/sim/erc32/local.mk
+++ b/sim/erc32/local.mk
@@ -39,7 +39,7 @@ SIM_INSTALL_EXEC_LOCAL_DEPS += sim-%D-install-exec-local
sim-%D-install-exec-local: installdirs
$(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
n=`echo sis | sed '$(program_transform_name)'`; \
- $(INSTALL_PROGRAM) %D%/sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
+ $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) %D%/run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
SIM_UNINSTALL_LOCAL_DEPS += sim-%D%-uninstall-local
sim-%D%-uninstall-local:
--
2.38.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-05 13:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-05 13:29 [PATCH] sim: use libtool to install programs 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).