direct-io.hg

changeset 11136:7ed73735fd30

This is a small patch that makes a cross compiler successfully compile
the sources under the tools directory. This patch became necessary
after qemu-dm is updated to a newer version.

Signed-off-by: Hiroya INAKOSHI <inakoshi.hiroya@jp.fujitsu.com>
author kfraser@localhost.localdomain
date Wed Aug 16 11:53:37 2006 +0100 (2006-08-16)
parents 88e6bd5e2b54
children b127e557ee74
files tools/blktap/lib/Makefile tools/libaio/src/Makefile tools/xenstore/Makefile
line diff
     1.1 --- a/tools/blktap/lib/Makefile	Wed Aug 16 11:36:13 2006 +0100
     1.2 +++ b/tools/blktap/lib/Makefile	Wed Aug 16 11:53:37 2006 +0100
     1.3 @@ -61,7 +61,7 @@ libblktap.a: $(OBJS)
     1.4  	      -o libblktap.so.$(MAJOR).$(MINOR) $^ $(LIBS)
     1.5  	ln -sf libblktap.so.$(MAJOR).$(MINOR) libblktap.so.$(MAJOR)
     1.6  	ln -sf libblktap.so.$(MAJOR) libblktap.so
     1.7 -	ar rc $@ libblktap.so
     1.8 +	$(AR) rc $@ libblktap.so
     1.9  
    1.10  .PHONY: TAGS all build clean install libblktap
    1.11  
     2.1 --- a/tools/libaio/src/Makefile	Wed Aug 16 11:36:13 2006 +0100
     2.2 +++ b/tools/libaio/src/Makefile	Wed Aug 16 11:53:37 2006 +0100
     2.3 @@ -1,3 +1,6 @@
     2.4 +XEN_ROOT = ../../..
     2.5 +include $(XEN_ROOT)/tools/Rules.mk
     2.6 +
     2.7  prefix=/usr
     2.8  includedir=$(prefix)/include
     2.9  libdir=$(prefix)/lib
    2.10 @@ -44,8 +47,8 @@ libaio_sobjs := $(patsubst %.c,%.os,$(li
    2.11  
    2.12  libaio.a: $(libaio_objs)
    2.13  	rm -f libaio.a
    2.14 -	ar r libaio.a $^
    2.15 -	ranlib libaio.a
    2.16 +	$(AR) r libaio.a $^
    2.17 +	$(RANLIB) libaio.a
    2.18  
    2.19  $(libname): $(libaio_sobjs) libaio.map
    2.20  	$(CC) $(SO_CFLAGS) -Wl,--version-script=libaio.map -Wl,-soname=$(soname) -o $@ $(libaio_sobjs) $(LINK_FLAGS)
     3.1 --- a/tools/xenstore/Makefile	Wed Aug 16 11:36:13 2006 +0100
     3.2 +++ b/tools/xenstore/Makefile	Wed Aug 16 11:53:37 2006 +0100
     3.3 @@ -98,7 +98,7 @@ libxenstore.so.$(MAJOR).$(MINOR): xs.opi
     3.4  	$(CC) $(CFLAGS) $(LDFLAGS) -Wl,-soname -Wl,libxenstore.so.$(MAJOR) -shared -o $@ $^ -lpthread
     3.5  
     3.6  libxenstore.a: xs.o xs_lib.o
     3.7 -	ar rcs libxenstore.a $^
     3.8 +	$(AR) rcs libxenstore.a $^
     3.9  
    3.10  .PHONY: clean
    3.11  clean: testsuite-clean