Skip to contentSkip to conversation

xen-libxc-static-build.patch

PATCH New Arun Sharma 1 participant 1 message May 24, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 :)

tools/libxc/Makefile +2 -3
@@ -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)