sim: use libtool to install programs
authorMike Frysinger <vapier@gentoo.org>
Sat, 5 Nov 2022 13:27:16 +0000 (20:27 +0700)
committerMike Frysinger <vapier@gentoo.org>
Sat, 5 Nov 2022 13:28:14 +0000 (20:28 +0700)
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
sim/Makefile.in
sim/erc32/local.mk

index 64847bc7abb3c66a05c3da8b77ca61cf7bef16bc..fb28f98ece70e89fbafd0b9881e108ad15597d8b 100644 (file)
@@ -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
 
index 67ba10c3b1944a1af3f9f370a1fe15aa0b1ffee8..9df04fed45a3e0fdf4180ed62f679b2b525e8e6c 100644 (file)
@@ -3271,7 +3271,7 @@ testsuite/common/bits64m63.c: testsuite/common/bits-gen$(EXEEXT) testsuite/commo
 @SIM_ENABLE_ARCH_erc32_TRUE@sim-%D-install-exec-local: installdirs
 @SIM_ENABLE_ARCH_erc32_TRUE@   $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
 @SIM_ENABLE_ARCH_erc32_TRUE@   n=`echo sis | sed '$(program_transform_name)'`; \
-@SIM_ENABLE_ARCH_erc32_TRUE@   $(INSTALL_PROGRAM) erc32/sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
+@SIM_ENABLE_ARCH_erc32_TRUE@   $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) erc32/run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
 @SIM_ENABLE_ARCH_erc32_TRUE@sim-erc32-uninstall-local:
 @SIM_ENABLE_ARCH_erc32_TRUE@   rm -f $(DESTDIR)$(bindir)/sis
 
@@ -3530,7 +3530,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
 
index d73bc5b4bfef78b36b23c7642a8a7ec87574adf9..1c6f7b3dbbd9b62b48c844b320e5429a1f545b1f 100644 (file)
@@ -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: