From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andre Przywara Subject: [PATCH] libxenlight: Disable unneeded C++ binding for libconfig Date: Thu, 10 Dec 2009 21:49:26 +0100 Message-ID: <4B215ED6.7020200@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040903000801060107090608" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini Cc: "xen-devel@lists.xensource.com" , Keir Fraser List-Id: xen-devel@lists.xenproject.org --------------040903000801060107090608 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit 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. Signed-off-by: Andre Przywara -- 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 --------------040903000801060107090608 Content-Type: text/plain; name="libxl_nocxx.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="libxl_nocxx.patch" diff -r 8f304c003af4 tools/libxl/Makefile --- a/tools/libxl/Makefile Wed Dec 09 10:59:31 2009 +0000 +++ b/tools/libxl/Makefile Thu Dec 10 16:46:34 2009 +0100 @@ -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 --------------040903000801060107090608 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------040903000801060107090608--