From: Jeremy Katz Subject: [PATCH] Fix installation of libblktap Date: Fri, 21 Jul 2006 17:09:35 -0400 Message-ID: <1153516175.13127.23.camel@aglarond.local> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-RknU7oZabCQW3nZWVDpp" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: Julian Chesterfield List-Id: xen-devel@lists.xenproject.org --=-RknU7oZabCQW3nZWVDpp Content-Type: text/plain Content-Transfer-Encoding: 7bit When installing libblktap, symlinks should be made instead of using install on the symlinks (install will follow the symlink) Signed-off-by: Jeremy Katz --=-RknU7oZabCQW3nZWVDpp Content-Disposition: attachment; filename=xen-blktap-libs-install.patch Content-Type: text/x-patch; name=xen-blktap-libs-install.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -r bbabdebc54ad tools/blktap/lib/Makefile --- a/tools/blktap/lib/Makefile Wed Jul 19 21:13:36 2006 +0100 +++ b/tools/blktap/lib/Makefile Fri Jul 21 17:08:39 2006 -0400 @@ -33,7 +33,7 @@ OBJS = $(patsubst %.c,%.o,$(SRCS)) OBJS = $(patsubst %.c,%.o,$(SRCS)) IBINS := -LIB = libblktap.a libblktap.so libblktap.so.$(MAJOR) libblktap.so.$(MAJOR).$(MINOR) +LIB = libblktap.a libblktap.so.$(MAJOR).$(MINOR) all: build @@ -44,10 +44,12 @@ install: all $(INSTALL_DIR) -p $(DESTDIR)/usr/$(LIBDIR) $(INSTALL_DIR) -p $(DESTDIR)/usr/include $(INSTALL_PROG) $(LIB) $(DESTDIR)/usr/$(LIBDIR) + ln -sf libblktap.so.$(MAJOR).$(MINOR) $(DESTDIR)/usr/$(LIBDIR)/libblktap.so.$(MAJOR) + ln -sf libblktap.so.$(MAJOR) $(DESTDIR)/usr/$(LIBDIR)/libblktap.so $(INSTALL_PROG) blktaplib.h $(DESTDIR)/usr/include clean: - rm -rf *.a *.so *.o *.rpm $(LIB) *~ $(DEPS) xen TAGS + rm -rf *.a *.so* *.o *.rpm $(LIB) *~ $(DEPS) xen TAGS libblktap: $(OBJS) $(CC) $(CFLAGS) -Wl,-soname -Wl,$(SONAME) -shared \ --=-RknU7oZabCQW3nZWVDpp 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 --=-RknU7oZabCQW3nZWVDpp--