mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2025-01-31 03:10:33 +00:00
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).
This commit is contained in:
parent
0f679da4c7
commit
869ca5dbb3
1 changed files with 9 additions and 2 deletions
11
Makefile
11
Makefile
|
@ -52,9 +52,16 @@ ARCH=$(COMPILE_ARCH)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef CC
|
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
|
endif
|
||||||
CC_IS_GCC=$(shell $(CC) --version | grep -q "(GCC)" && echo 1)
|
|
||||||
|
|
||||||
ifeq ($(ARCH),powerpc)
|
ifeq ($(ARCH),powerpc)
|
||||||
ARCH=ppc
|
ARCH=ppc
|
||||||
|
|
Loading…
Reference in a new issue