Description: Adapt stubdom/Makefile to build on Debian based systems Adapted for Debian based systems from the origin below, file: xen-3.4-3.4.1/debian/patches/fix-pvgrub.diff Drivers: User Virtual URL: http://virtualusr.wordpress.com Origin: http://launchpadlibrarian.net/30283878/xen-3.4_3.4.1-1ubuntu1.diff.gz Index: xen-4.0-4.0.1/stubdom/Makefile =================================================================== --- xen-4.0-4.0.1.orig/stubdom/Makefile 2010-08-25 10:22:42.000000000 +0200 +++ xen-4.0-4.0.1/stubdom/Makefile 2011-01-04 19:08:19.046874315 +0100 @@ -108,6 +108,7 @@ $(NEWLIB_STAMPFILE): mk-headers-$(XEN_TARGET_ARCH) newlib-$(NEWLIB_VERSION) mkdir -p newlib-$(XEN_TARGET_ARCH) ( cd newlib-$(XEN_TARGET_ARCH) && \ + $(if $(filter y,$(DEBIANBASE)),LDFLAGS="") \ CC_FOR_TARGET="$(CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(NEWLIB_CFLAGS)" AR_FOR_TARGET=$(AR) LD_FOR_TARGET=$(LD) RANLIB_FOR_TARGET=$(RANLIB) ../newlib-$(NEWLIB_VERSION)/configure --prefix=$(CROSS_PREFIX) --verbose --target=$(GNU_TARGET_ARCH)-xen-elf --enable-newlib-io-long-long --disable-multilib && \ $(MAKE) && \ DESTDIR= $(MAKE) install )