Makefile.target: use $(INSTALL_PROG) for installing, not $(INSTALL)
PATCH 1/1 Makefile.target: use $(INSTALL_PROG) for installing, not $(INSTALL)
$(INSTALL_PROG) is evaluated to libtool if using libtool, while $(INSTALL) is not. Use $(INSTALL_PROG) so that libtool is used with target too when necessary. This allows, for example, to link qemu with shared libcacard.
Signed-off-by Michael Tokarev <[email protected]>
Cc Fam Zheng <[email protected]>
Cc Paolo Bonzini <[email protected]>
Cc Alon Levy <[email protected]>
--
This is done on top of previous patch (using $(STRIP)), but it can be used by its own.
--- Makefile.target | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile.target +1 -1
@@ -194,7 +194,7 @@ endif install: all ifneq ($(PROGS),) - $(INSTALL) -m 755 $(PROGS) "$(DESTDIR)$(bindir)" + $(INSTALL_PROG) $(PROGS) "$(DESTDIR)$(bindir)" ifneq ($(STRIP),) $(STRIP) $(PROGS:%="$(DESTDIR)$(bindir)/%") endif
Signature · 1 line
1.7.10.4
Quoted 10 lines · Michael Tokarev
$(INSTALL_PROG) is evaluated to libtool if using libtool, while $(INSTALL) is not. Use $(INSTALL_PROG) so that libtool is used with target too when necessary. This allows, for example, to link qemu with shared libcacard.
Signed-off-by Michael Tokarev <[email protected]>Cc Fam Zheng <[email protected]>Cc Paolo Bonzini <[email protected]>Cc Alon Levy <[email protected]>
Reviewed-by Fam Zheng <[email protected]>
Quoted 23 lines
--
This is done on top of previous patch (using $(STRIP)), but it can be used by its own.--- Makefile.target | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Makefile.target +1
-1@@ -194,7 +194,7 @@ endif install: all ifneq ($(PROGS),) - $(INSTALL) -m 755 $(PROGS) "$(DESTDIR)$(bindir)" + $(INSTALL_PROG) $(PROGS) "$(DESTDIR)$(bindir)" ifneq ($(STRIP),) $(STRIP) $(PROGS:%="$(DESTDIR)$(bindir)/%") endifSignature · 1 line
1.7.10.4