From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Sharma Subject: [PATCH] xen-libxc-static-build.patch Date: Tue, 24 May 2005 14:06:39 -0700 Message-ID: <20050524210639.GA5405@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Pratt , Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Fix build of the static library. As it was depending on an undefined objects variable (OBJS), its dependency list was null and thus it ended up empty. Also optimize the depedency checking so we don't need a submake. Not too great an optimization, but it makes it short :) Signed-off-by: Inaky Perez-Gonzalez Signed-off-by: Arun Sharma --- xen/tools/libxc/Makefile (revision 1115) +++ xen/tools/libxc/Makefile (working copy) @@ -46,8 +46,7 @@ LIB := libxc.a libxc.so libxc.so.$(MAJOR) libxc.so.$(MAJOR).$(MINOR) all: build -build: check-for-zlib mk-symlinks - $(MAKE) $(LIB) +build: check-for-zlib mk-symlinks $(LIB) check-for-zlib: @if [ ! -e /usr/include/zlib.h ]; then \ @@ -94,7 +93,7 @@ mv staging/i386/*.rpm . rm -rf staging -libxc.a: $(OBJS) +libxc.a: $(LIB_OBJS) $(AR) rc $@ $^ libxc.so: libxc.so.$(MAJOR)