Révision | c95bd9111ee75556a4a6ba51603856cee0afef2b (tree) |
---|---|
l'heure | 2022-11-05 22:28:14 |
Auteur | Mike Frysinger <vapier@gent...> |
Commiter | Mike Frysinger |
sim: use libtool to install programs
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.
@@ -214,7 +214,8 @@ install-exec-local: installdirs $(SIM_INSTALL_EXEC_LOCAL_DEPS) | ||
214 | 214 | if [ -e $$d/run$(EXEEXT) ]; then \ |
215 | 215 | n="$$run"; \ |
216 | 216 | [ "$(SIM_PRIMARY_TARGET)" = "$$d" ] || n="$$n-$$d"; \ |
217 | - $(INSTALL_PROGRAM) $$d/run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT) || exit 1; \ | |
217 | + $(LIBTOOL) --mode=install \ | |
218 | + $(INSTALL_PROGRAM) $$d/run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT) || exit 1; \ | |
218 | 219 | fi; \ |
219 | 220 | done |
220 | 221 |
@@ -3271,7 +3271,7 @@ testsuite/common/bits64m63.c: testsuite/common/bits-gen$(EXEEXT) testsuite/commo | ||
3271 | 3271 | @SIM_ENABLE_ARCH_erc32_TRUE@sim-%D-install-exec-local: installdirs |
3272 | 3272 | @SIM_ENABLE_ARCH_erc32_TRUE@ $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir) |
3273 | 3273 | @SIM_ENABLE_ARCH_erc32_TRUE@ n=`echo sis | sed '$(program_transform_name)'`; \ |
3274 | -@SIM_ENABLE_ARCH_erc32_TRUE@ $(INSTALL_PROGRAM) erc32/sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT) | |
3274 | +@SIM_ENABLE_ARCH_erc32_TRUE@ $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) erc32/run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT) | |
3275 | 3275 | @SIM_ENABLE_ARCH_erc32_TRUE@sim-erc32-uninstall-local: |
3276 | 3276 | @SIM_ENABLE_ARCH_erc32_TRUE@ rm -f $(DESTDIR)$(bindir)/sis |
3277 | 3277 |
@@ -3530,7 +3530,8 @@ install-exec-local: installdirs $(SIM_INSTALL_EXEC_LOCAL_DEPS) | ||
3530 | 3530 | if [ -e $$d/run$(EXEEXT) ]; then \ |
3531 | 3531 | n="$$run"; \ |
3532 | 3532 | [ "$(SIM_PRIMARY_TARGET)" = "$$d" ] || n="$$n-$$d"; \ |
3533 | - $(INSTALL_PROGRAM) $$d/run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT) || exit 1; \ | |
3533 | + $(LIBTOOL) --mode=install \ | |
3534 | + $(INSTALL_PROGRAM) $$d/run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT) || exit 1; \ | |
3534 | 3535 | fi; \ |
3535 | 3536 | done |
3536 | 3537 |
@@ -39,7 +39,7 @@ SIM_INSTALL_EXEC_LOCAL_DEPS += sim-%D-install-exec-local | ||
39 | 39 | sim-%D-install-exec-local: installdirs |
40 | 40 | $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir) |
41 | 41 | n=`echo sis | sed '$(program_transform_name)'`; \ |
42 | - $(INSTALL_PROGRAM) %D%/sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT) | |
42 | + $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) %D%/run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT) | |
43 | 43 | |
44 | 44 | SIM_UNINSTALL_LOCAL_DEPS += sim-%D%-uninstall-local |
45 | 45 | sim-%D%-uninstall-local: |