diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2010-12-03 09:36:47 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2010-12-03 09:36:47 +0000 |
commit | c89c726db972722d1e1ef3fd4913a05234c9cc47 (patch) | |
tree | 96e46313dfb8b746fbaafc28ac851ebc002c6538 /tools/libxc/Makefile | |
parent | 0ccceacd058c82f9cd747dff5efa92eebaded2fc (diff) | |
download | xen-c89c726db972722d1e1ef3fd4913a05234c9cc47.tar.gz xen-c89c726db972722d1e1ef3fd4913a05234c9cc47.tar.bz2 xen-c89c726db972722d1e1ef3fd4913a05234c9cc47.zip |
libxc: add abitility to dynamically load osdep.
Add a dummy backend which always returns ENOSYS. Mainly as a compile
time testbed rather than because it is a useful backend.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxc/Makefile')
-rw-r--r-- | tools/libxc/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/libxc/Makefile b/tools/libxc/Makefile index ff23f30c58..a2263438f1 100644 --- a/tools/libxc/Makefile +++ b/tools/libxc/Makefile @@ -92,6 +92,10 @@ ifneq ($(stubdom),y) LIB += libxenguest.so libxenguest.so.$(MAJOR) libxenguest.so.$(MAJOR).$(MINOR) endif +ifneq ($(stubdom),y) +LIB += xenctrl_osdep_ENOSYS.so +endif + .PHONY: all all: build @@ -148,7 +152,7 @@ libxenctrl.so.$(MAJOR): libxenctrl.so.$(MAJOR).$(MINOR) ln -sf $< $@ libxenctrl.so.$(MAJOR).$(MINOR): $(CTRL_PIC_OBJS) - $(CC) $(CFLAGS) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxenctrl.so.$(MAJOR) $(SHLIB_LDFLAGS) -o $@ $^ $(PTHREAD_LIBS) + $(CC) $(CFLAGS) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxenctrl.so.$(MAJOR) -ldl $(SHLIB_LDFLAGS) -o $@ $^ $(PTHREAD_LIBS) # libxenguest @@ -186,5 +190,8 @@ libxenguest.so.$(MAJOR).$(MINOR): COMPRESSION_LIBS = $(call zlib-options,l) libxenguest.so.$(MAJOR).$(MINOR): $(GUEST_PIC_OBJS) libxenctrl.so $(CC) $(CFLAGS) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxenguest.so.$(MAJOR) $(SHLIB_LDFLAGS) -o $@ $(GUEST_PIC_OBJS) $(COMPRESSION_LIBS) -lz -lxenctrl $(PTHREAD_LIBS) +xenctrl_osdep_ENOSYS.so: xenctrl_osdep_ENOSYS.o libxenctrl.so + $(CC) -g $(CFLAGS) $(LDFLAGS) $(SHLIB_LDFLAGS) -o $@ xenctrl_osdep_ENOSYS.o -lxenctrl + -include $(DEPS) |