Skip to contentSkip to conversation

libxenlight: Disable unneeded C++ binding for libconfig

PATCH New Andre Przywara 1 participant 1 message Dec 10, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxenlight: Disable unneeded C++ binding for libconfig

Hi,

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. Attached patch disables this via a configure option.

Regards,
Andre.

Signature · 9 lines
Andre Przywara
AMD-Operating System Research Center (OSRC), Dresden, Germany
Tel: +49 351 488-3567-12
----to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Andrew Bowd; Thomas M. McCoy; Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
tools/libxl/Makefile +1 -1
diff -r 8f304c003af4 tools/libxl/Makefile
@@ -48,7 +48,7 @@
 
 $(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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel