From: Jeremy Katz Subject: Re: [PATCH] libxenstore should be executable Date: Wed, 05 Jul 2006 14:36:29 -0400 Message-ID: <1152124589.20228.96.camel@aglarond.local> References: <1151983683.20228.25.camel@aglarond.local> <20060704095749.GA6997@snarc.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-gxDRR1kjPiTia/nqlYdB" Return-path: In-Reply-To: <20060704095749.GA6997@snarc.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Vincent Hanquez Cc: xen-devel List-Id: xen-devel@lists.xenproject.org --=-gxDRR1kjPiTia/nqlYdB Content-Type: text/plain Content-Transfer-Encoding: 7bit On Tue, 2006-07-04 at 11:57 +0200, Vincent Hanquez wrote: > On Mon, Jul 03, 2006 at 11:28:03PM -0400, Jeremy Katz wrote: > > Shared libraries are supposed to be installed +x > > I don't think that needed (almost all libraries in my /usr/lib are -x). > Even then you shouldn't call INSTALL_**PROG** but just create an > INSTALL_LIB or somethign similar.. Shared libs have traditionally been installed as executables due to some long ago accidents of implementation in historical Unixes. And there are various tools which "expect" it (... and this is why they get created as executable by default by ld). Switching to INSTALL_LIB here although I think the whole "define all the ways you're going to use install" in this makefile a _smidge_ overkill Signed-off-by: Jeremy Katz Jeremy --=-gxDRR1kjPiTia/nqlYdB Content-Disposition: attachment; filename=xen-libxenstore-exec.patch Content-Type: text/x-patch; name=xen-libxenstore-exec.patch; charset=utf-8 Content-Transfer-Encoding: 7bit diff -r fd6d12935b56 tools/xenstore/Makefile --- a/tools/xenstore/Makefile Mon Jul 03 16:07:20 2006 +0100 +++ b/tools/xenstore/Makefile Wed Jul 05 14:33:07 2006 -0400 @@ -5,6 +5,7 @@ INSTALL = install INSTALL = install INSTALL_DATA = $(INSTALL) -m0644 INSTALL_PROG = $(INSTALL) -m0755 +INSTALL_LIBS = $(INSTALL) -m0755 INSTALL_DIR = $(INSTALL) -d -m0755 PROFILE=#-pg @@ -171,7 +172,7 @@ install: all $(INSTALL_PROG) xenstore-control $(DESTDIR)/usr/bin $(INSTALL_PROG) xenstore-ls $(DESTDIR)/usr/bin $(INSTALL_DIR) -p $(DESTDIR)/usr/$(LIBDIR) - $(INSTALL_DATA) libxenstore.so $(DESTDIR)/usr/$(LIBDIR) + $(INSTALL_LIBS) libxenstore.so $(DESTDIR)/usr/$(LIBDIR) $(INSTALL_DATA) xs.h $(DESTDIR)/usr/include $(INSTALL_DATA) xs_lib.h $(DESTDIR)/usr/include --=-gxDRR1kjPiTia/nqlYdB Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-gxDRR1kjPiTia/nqlYdB--