Any reason for defining SPARC?

Started by TedWalther, June 14, 2009, 03:39:31 PM

Previous topic - Next topic

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
Cavemen in bearskins invaded the ivory towers of Artificial Intelligence.  Nine months later, they left with a baby named newLISP.  The women of the ivory towers wept and wailed.  \"Abomination!\" they cried.

TedWalther

#1
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
Cavemen in bearskins invaded the ivory towers of Artificial Intelligence.  Nine months later, they left with a baby named newLISP.  The women of the ivory towers wept and wailed.  \"Abomination!\" they cried.

Lutz

#2
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.