From 869ca5dbb32bbad43c55a01c372810ca185d2e60 Mon Sep 17 00:00:00 2001 From: Coyote Date: Wed, 30 May 2007 19:36:40 +0000 Subject: [PATCH] Changes for SunOS: grep -q doesn't work on SunOS and GNU make on SunOS defines CC as 'cc' by default (it's not present). --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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