[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Solaris / FreeBSD builds (was Re: [PATCH 0/3] stdinc-related build fixes.)

At 14:25 +0100 on 15 Aug (1376576704), Tim Deegan wrote:
> I rather suspect that FreeBSD and Solaris ought to be treated the same
> way -- currently FreeBSD has no workarounds (but on a FreeBSD 5 box I
> see stdarg.h in /usr/include)

Yep, FreeBSD works with the same handling as the other BSDs.  (I just
sent a patch to do that.)

> and Solaris just drops the nostdinc (I have no Solaris box handy to test on).

Playing with a Solaris 10 VM (and gcc &c from opencsw) it looks like
'-nostdinc -iwithprefix include' should work fine there, i.e.:

diff --git a/xen/Rules.mk b/xen/Rules.mk
index bbfc1ac..bf870da 100644
--- a/xen/Rules.mk
+++ b/xen/Rules.mk
@@ -45,10 +45,7 @@ CFLAGS-y                += -fno-builtin -fno-common
 CFLAGS-y                += -Werror -Wredundant-decls -Wno-pointer-arith
 CFLAGS-y                += -pipe
 CFLAGS-y                += -g -D__XEN__ -include 
-# Solaris puts stdarg.h &c in the system include directory.
-ifneq ($(XEN_OS),SunOS)
 CFLAGS-y                += -nostdinc -iwithprefix include

Sadly all I could find at short notice was 32-bit install media so I can't
actually test the x86_64 build.  

Does anyone from Oracle want to try it? :)



Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.