WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] xen-libxc-static-build.patch

To: Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>, Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] xen-libxc-static-build.patch
From: Arun Sharma <arun.sharma@xxxxxxxxx>
Date: Tue, 24 May 2005 14:06:39 -0700
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 24 May 2005 21:04:22 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.1i
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 <inaky@xxxxxxxxxxxxxxx>
Signed-off-by: Arun Sharma <arun.sharma@xxxxxxxxx>

--- 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)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xen-libxc-static-build.patch, Arun Sharma <=