libxenlight: Disable unneeded C++ binding for libconfig
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 11 Dec 2009 09:00:40 +0000 (09:00 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 11 Dec 2009 09:00:40 +0000 (09:00 +0000)
If we want to avoid that a C++ compiler becomes a requirement for a
Xen build, we should disable the (unneeded) C++ library generation for
the embedded libconfig.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
tools/libxl/Makefile

index e0e257d05012aedb05a32dd16625f83da6c74b24..4d86cf7866474c52be88c0675037255216bf36a5 100644 (file)
@@ -48,7 +48,7 @@ $(LIBCONFIG_SOURCE).tar.gz:
 
 $(LIBCONFIG_OUTPUT)/libconfig.so: $(LIBCONFIG_SOURCE).tar.gz
        [ ! -d "$(LIBCONFIG_SOURCE)" ] && tar xzf $<
-       cd $(LIBCONFIG_SOURCE) && ./configure --prefix=$(DESTDIR)$(PREFIX) && $(MAKE)
+       cd $(LIBCONFIG_SOURCE) && ./configure --prefix=$(DESTDIR)$(PREFIX) --disable-cxx && $(MAKE)
 
 xl.o: $(LIBCONFIG_OUTPUT)/libconfig.so xl.c
        $(CC) $(CFLAGS) -I$(LIBCONFIG_SOURCE) -c xl.c