comparison make/solaris/makefiles/gcc.make @ 3165:7292cff45988

7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable Reviewed-by: dholmes, ohrstrom, ohair, jcoomes
author erikj
date Wed, 22 Feb 2012 09:24:35 +0100
parents 719f7007c8e8
children 4d399f013e5a
comparison
equal deleted inserted replaced
7:ccc37d316106 8:8ac112f5b958
23 # 23 #
24 24
25 #------------------------------------------------------------------------ 25 #------------------------------------------------------------------------
26 # CC, CXX & AS 26 # CC, CXX & AS
27 27
28 CXX = g++ 28 # If a SPEC is not set already, then use these defaults.
29 CC = gcc 29 ifeq ($(SPEC),)
30 AS = $(CC) -c 30 CXX = g++
31 CC = gcc
32 AS = $(CC) -c
33 MCS = /usr/ccs/bin/mcs
34 endif
31 35
32 Compiler = gcc 36 Compiler = gcc
33 37
34 # -dumpversion in gcc-2.91 shows "egcs-2.91.66". In later version, it only 38 # -dumpversion in gcc-2.91 shows "egcs-2.91.66". In later version, it only
35 # prints the numbers (e.g. "2.95", "3.2.1") 39 # prints the numbers (e.g. "2.95", "3.2.1")
191 DEBUG_CFLAGS/amd64 = -g 195 DEBUG_CFLAGS/amd64 = -g
192 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) 196 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
193 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),) 197 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),)
194 DEBUG_CFLAGS += -gstabs 198 DEBUG_CFLAGS += -gstabs
195 endif 199 endif
196
197 MCS = /usr/ccs/bin/mcs