Lurie <yura at gmx.co.uk> wrote:

> Contributed a trivial patch yesterday so that llvm-clang successfully builds 
> all the C code I've tried so far on OpenSolaris, it has awesome diagnostics 
> so thought some of you might want to try it out:
> http://clang.llvm.org/get_started.html
>
> Btw, to all the compiler gurus out here, currently the macro defines for 
> Solaris are:
>   DefineStd(Defs, "sun", Opts);
>   DefineStd(Defs, "unix", Opts);
>   Define(Defs, "__ELF__");
>   Define(Defs, "__svr4__");
>   Define(Defs, "__SVR4");
>
> Is there anything else needed ? Are the svr4 macros needed ?

See cc -# x.c

-D__SunOS_5_11 -D__SVR4 -D__sun -D__SunOS -D__unix -D__i386 
-Dunix -Dsun -Di386 

Replace i386 with sparc if needed.

J?rg

-- 
 EMail:joerg at schily.isdn.cs.tu-berlin.de (home) J?rg Schilling D-13353 Berlin
       js at cs.tu-berlin.de                (uni)  
       joerg.schilling at fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily

Reply via email to