aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 29bf7ef..057e69d 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