aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/Rules.mk
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-10-19 17:01:51 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-10-19 17:01:51 +0100
commit943ca75a60dc1232917c9c80e06ab81411acceb6 (patch)
tree771955069a1e8ccaea2047ebafacaa01f453097d /xen/arch/x86/Rules.mk
parent3084f41064a2c882bda1cf4f867b5227dc87302b (diff)
downloadxen-943ca75a60dc1232917c9c80e06ab81411acceb6.tar.gz
xen-943ca75a60dc1232917c9c80e06ab81411acceb6.tar.bz2
xen-943ca75a60dc1232917c9c80e06ab81411acceb6.zip
[SOLARIS] Don't use -nostdinc as it prevents getting stadrg.h
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/arch/x86/Rules.mk')
-rw-r--r--xen/arch/x86/Rules.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/xen/arch/x86/Rules.mk b/xen/arch/x86/Rules.mk
index fd1a52e365..fc4241fafb 100644
--- a/xen/arch/x86/Rules.mk
+++ b/xen/arch/x86/Rules.mk
@@ -11,7 +11,12 @@ HAS_VGA := y
pae ?= n
supervisor_mode_kernel ?= n
-CFLAGS += -nostdinc -fno-builtin -fno-common -fno-strict-aliasing
+# Solaris grabs stdarg.h and friends from the system include directory.
+ifneq ($(XEN_OS),SunOS)
+CFLAGS += -nostdinc
+endif
+
+CFLAGS += -fno-builtin -fno-common -fno-strict-aliasing
CFLAGS += -iwithprefix include -Werror -Wno-pointer-arith -pipe
CFLAGS += -I$(BASEDIR)/include
CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-generic