From: Ian Jackson Date: Wed, 25 Jun 2014 13:14:25 +0000 (+0100) Subject: Makefile etc.: Use -no-integrated-cpp X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0ac168d86a32d709fc568ba90dcc4d97cc03129d;p=rumpuser-xen.git Makefile etc.: Use -no-integrated-cpp I have found that GCC 4.7.2 (Debian i386 4.7.2-5) sometimes misreports errors relating to broken #includes when the integrated cpp is in use. Signed-off-by: Ian Jackson --- diff --git a/Makefile b/Makefile index 3e4e12f..a2e1f1d 100644 --- a/Makefile +++ b/Makefile @@ -32,6 +32,7 @@ include minios.mk CFLAGS += -Irump/include -nostdinc CFLAGS += -DVIRTIF_BASE=xenif -I$(MINI-OS_ROOT) +CFLAGS += -no-integrated-cpp ifeq ($(CONFIG_PCI),y) LIBS_PCI = -lrumpdev_pci -lrumpdev_pci_if_wm -lrumpdev_miiphy diff --git a/app-tools/rumpxen-app-cc.in b/app-tools/rumpxen-app-cc.in index 6a80a4a..0e8b8ff 100755 --- a/app-tools/rumpxen-app-cc.in +++ b/app-tools/rumpxen-app-cc.in @@ -3,4 +3,5 @@ set -e case " $* " in *" -v "*) set -x ;; esac -exec gcc -D__RUMPUSER_XEN__ -D__NetBSD__ -specs=!APPTOOLS!/specs "$@" +exec gcc -D__RUMPUSER_XEN__ -D__NetBSD__ -no-integrated-cpp \ + -specs=!APPTOOLS!/specs "$@"