Skip to content

Commit

Permalink
Changes for SunOS: grep -q doesn't work on SunOS and GNU make on SunO…
Browse files Browse the repository at this point in the history
…S defines CC as 'cc' by default (it's not present).
  • Loading branch information
Coyote committed May 30, 2007
1 parent 0f679da commit 869ca5d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Makefile
Expand Up @@ -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
Expand Down

0 comments on commit 869ca5d

Please sign in to comment.