[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 
$(BASEDIR)/include/xen/config.h
-# Solaris puts stdarg.h &c in the system include directory.
-ifneq ($(XEN_OS),SunOS)
 CFLAGS-y                += -nostdinc -iwithprefix include
-endif
 
 CFLAGS-$(XSM_ENABLE)    += -DXSM_ENABLE
 CFLAGS-$(FLASK_ENABLE)  += -DFLASK_ENABLE -DXSM_MAGIC=0xf97cff8c


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? :)

Cheers,

Tim.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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