Received: from eggs.gnu.org ([2001:4830:134:3::10]:42213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiNdx-0007FZ-Om for qemu-devel@nongnu.org; Thu, 08 May 2014 08:41:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WiNds-0002wA-N3 for qemu-devel@nongnu.org; Thu, 08 May 2014 08:41:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:8418) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiNds-0002vy-Fh for qemu-devel@nongnu.org; Thu, 08 May 2014 08:41:40 -0400 Date: Thu, 8 May 2014 20:41:51 +0800 From: Fam Zheng Message-ID: <20140508124151.GC23579@T430.nay.redhat.com> References: <1399547163-16824-1-git-send-email-mjt@msgid.tls.msk.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1399547163-16824-1-git-send-email-mjt@msgid.tls.msk.ru> Subject: Re: [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: Michael Tokarev Cc: Paolo Bonzini , qemu-devel@nongnu.org On Thu, 05/08 15:06, Michael Tokarev wrote: > 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 Reviewed-by: Fam Zheng > --- > 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 > >