Page 1 of 1

Any reason for defining SPARC?

Posted: Sun Jun 14, 2009 10:39 pm
by TedWalther
I notice that in the Solaris makefiles, both SOLARIS and SPARC are defined. SPARC is only used in ns-filesys.c, and I see no reason why SOLARIS wouldn't do equally as well. Is there something hardware specific going on?

Ted

Posted: Mon Jun 15, 2009 3:34 am
by TedWalther
I think I found the reason; OpenSolaris doesn't need SPARC defined. Perhaps someone was testing on an i386 build of Solaris? I think SUNOS only ran on Sparc... owait, I"m wrong, there were some Motorola 6800 chipsets in the beginning, but the SPARC define seems like it is an OS dependant thing, not a hardware dependant thing.

Shouldn't we replace the current SOLARIS/SPARC define set with SUNOS, and use SOLARIS just for SOLARIS?

Ted

Posted: Mon Jun 15, 2009 12:19 pm
by Lutz
Yes, I should propbably rename it to makefile_sunos and i'll put

#ifdef SUNOS
#define SOLARIS
#define SPARC
#endif

and use only SUNOS in the makefile.