Any reason for defining SPARC?

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
TedWalther
Posts: 608
Joined: Mon Feb 05, 2007 1:04 am
Location: Abbotsford, BC
Contact:

Any reason for defining SPARC?

Post 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

TedWalther
Posts: 608
Joined: Mon Feb 05, 2007 1:04 am
Location: Abbotsford, BC
Contact:

Post 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

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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.

Locked