diff --git a/Makefile b/Makefile index 29bf7efc..057e69da 100644 --- a/Makefile +++ b/Makefile @@ -52,9 +52,16 @@ ARCH=$(COMPILE_ARCH) endif ifndef CC -CC=gcc + CC=gcc +endif + +ifeq ($(PLATFORM),sunos) + # GNU make on SunOS defines CC as 'cc'. 'grep -q' is not an option on SunOS. + CC=gcc + CC_IS_GCC=1 +else + CC_IS_GCC=$(shell $(CC) --version | grep -q "(GCC)" && echo 1) endif -CC_IS_GCC=$(shell $(CC) --version | grep -q "(GCC)" && echo 1) ifeq ($(ARCH),powerpc) ARCH=ppc