direct-io.hg

changeset 5135:d8431b0823fd

bitkeeper revision 1.1539 (42939e68t9DDgqpBZmkD0dpuIEiwBQ)

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

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@linux.intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
author arun.sharma@intel.com[kaf24]
date Tue May 24 21:36:40 2005 +0000 (2005-05-24)
parents 4db1d602c934
children b03b6f39e718
files tools/libxc/Makefile
line diff
     1.1 --- a/tools/libxc/Makefile	Tue May 24 21:36:26 2005 +0000
     1.2 +++ b/tools/libxc/Makefile	Tue May 24 21:36:40 2005 +0000
     1.3 @@ -45,8 +45,7 @@ PIC_OBJS := $(patsubst %.c,%.opic,$(SRCS
     1.4  LIB      := libxc.a libxc.so libxc.so.$(MAJOR) libxc.so.$(MAJOR).$(MINOR)
     1.5  
     1.6  all: build
     1.7 -build: check-for-zlib mk-symlinks
     1.8 -	$(MAKE) $(LIB)
     1.9 +build: check-for-zlib mk-symlinks $(LIB)
    1.10  
    1.11  check-for-zlib:
    1.12  	@if [ ! -e /usr/include/zlib.h ]; then \
    1.13 @@ -93,7 +92,7 @@ rpm: build
    1.14  	mv staging/i386/*.rpm .
    1.15  	rm -rf staging
    1.16  
    1.17 -libxc.a: $(OBJS)
    1.18 +libxc.a: $(LIB_OBJS)
    1.19  	$(AR) rc $@ $^
    1.20  
    1.21  libxc.so: libxc.so.$(MAJOR)