Received: from eggs.gnu.org ([2001:4830:134:3::10]:50603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiM9R-0002ui-PS for qemu-devel@nongnu.org; Thu, 08 May 2014 07:06:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WiM9M-0004GF-S3 for qemu-devel@nongnu.org; Thu, 08 May 2014 07:06:09 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:48294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiM9M-0004G9-KM for qemu-devel@nongnu.org; Thu, 08 May 2014 07:06:04 -0400 From: Michael Tokarev Date: Thu, 8 May 2014 15:06:03 +0400 Message-Id: <1399547163-16824-1-git-send-email-mjt@msgid.tls.msk.ru> Subject: [Qemu-devel] [PATCH] Makefile: use $(INSTALL_LIB) for modules not $(INSTALL_PROG) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Fam Zheng , Michael Tokarev , Paolo Bonzini We have $(INSTALL_LIB) which is the same as $(INSTALL_PROG) but uses correct permissions. Loadable objects (modules) are like shared libraries, not like programs. Signed-off-by: Michael Tokarev Cc: Fam Zheng Cc: Paolo Bonzini --- Again, this is done on top of $(STRIP) patch, but can be done by its own. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 23ca444..12ea464 100644 --- a/Makefile +++ b/Makefile @@ -381,7 +381,7 @@ ifneq ($(CONFIG_MODULES),) $(INSTALL_DIR) "$(DESTDIR)$(qemu_moddir)" for s in $(modules-m:.mo=$(DSOSUF)); do \ t="$(DESTDIR)$(qemu_moddir)/$$(echo $$s | tr / -)"; \ - $(INSTALL_PROG) $$s "$$t"; \ + $(INSTALL_LIB) $$s "$$t"; \ test -z "$(STRIP)" || $(STRIP) "$$t"; \ done endif -- 1.7.10.4