Makefile.target: use $(INSTALL_PROG) for installing, not $(INSTALL)
authorMichael Tokarev <mjt@tls.msk.ru>
Thu, 8 May 2014 11:02:29 +0000 (15:02 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 8 May 2014 13:09:04 +0000 (15:09 +0200)
$(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 <mjt@tls.msk.ru>
Cc: Fam Zheng <famz@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Alon Levy <alevy@redhat.com>
Cc: qemu-trivial@nongnu.org
--
This is done on top of previous patch (using $(STRIP)), but it can
be used by its own.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Makefile.target

index 8fc606fabae87aa0725dffaf2d8f21c9d94100ae..998604754507f3e62b1881658e81924bf789c265 100644 (file)
@@ -183,7 +183,7 @@ endif
 
 install: all
 ifneq ($(PROGS),)
-       $(INSTALL) -m 755 $(PROGS) "$(DESTDIR)$(bindir)"
+       $(INSTALL_PROG) $(PROGS) "$(DESTDIR)$(bindir)"
 ifneq ($(STRIP),)
        $(STRIP) $(PROGS:%="$(DESTDIR)$(bindir)/%")
 endif