From patchwork Thu May 8 11:02:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 346999 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id CF67E14008A for ; Thu, 8 May 2014 21:03:00 +1000 (EST) Received: from localhost ([::1]:46004 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiM6M-0001up-J8 for incoming@patchwork.ozlabs.org; Thu, 08 May 2014 07:02:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiM60-0001YC-4N for qemu-devel@nongnu.org; Thu, 08 May 2014 07:02:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WiM5v-0002o5-Ef for qemu-devel@nongnu.org; Thu, 08 May 2014 07:02:36 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:57713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiM5v-0002nz-7L; Thu, 08 May 2014 07:02:31 -0400 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 9E1F540BB3; Thu, 8 May 2014 15:02:29 +0400 (MSK) Received: from tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by tsrv.corpit.ru (Postfix) with SMTP id 86814672; Thu, 8 May 2014 15:02:29 +0400 (MSK) Received: (nullmailer pid 16236 invoked by uid 1000); Thu, 08 May 2014 11:02:29 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Date: Thu, 8 May 2014 15:02:29 +0400 Message-Id: <1399546949-16197-1-git-send-email-mjt@msgid.tls.msk.ru> X-Mailer: git-send-email 1.7.10.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 86.62.121.231 Cc: Fam Zheng , qemu-trivial@nongnu.org, Michael Tokarev , Alon Levy , Paolo Bonzini , Hollis Blanchard Subject: [Qemu-devel] [PATCH] Makefile.target: use $(INSTALL_PROG) for installing, not $(INSTALL) X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org $(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 Cc: Fam Zheng Cc: Paolo Bonzini Cc: Alon Levy Cc: qemu-trivial@nongnu.org Reviewed-by: Fam Zheng --- 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(-) diff --git a/Makefile.target b/Makefile.target index 8de8b12..3b75ade 100644 --- a/Makefile.target +++ b/Makefile.target @@ -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