1
2CC$(sm)		:= $(CROSS_COMPILE_$(sm))gcc
3CXX$(sm)	:= $(CROSS_COMPILE_$(sm))g++
4CPP$(sm)	:= $(CROSS_COMPILE_$(sm))cpp
5LD$(sm)		:= $(CROSS_COMPILE_$(sm))ld.bfd
6AR$(sm)		:= $(CROSS_COMPILE_$(sm))ar
7NM$(sm)		:= $(CROSS_COMPILE_$(sm))nm
8OBJCOPY$(sm)	:= $(CROSS_COMPILE_$(sm))objcopy
9OBJDUMP$(sm)	:= $(CROSS_COMPILE_$(sm))objdump
10READELF$(sm)	:= $(CROSS_COMPILE_$(sm))readelf
11
12nostdinc$(sm)	:= -nostdinc -isystem $(shell $(CC$(sm)) \
13			-print-file-name=include 2> /dev/null)
14
15# Get location of libgcc from gcc
16libgcc$(sm)  	:= $(shell $(CC$(sm)) $(CFLAGS$(arch-bits-$(sm))) \
17			-print-libgcc-file-name 2> /dev/null)
18libstdc++$(sm)	:= $(shell $(CXX$(sm)) $(CXXFLAGS$(arch-bits-$(sm))) $(comp-cxxflags$(sm)) \
19			-print-file-name=libstdc++.a 2> /dev/null)
20libgcc_eh$(sm)	:= $(shell $(CXX$(sm)) $(CXXFLAGS$(arch-bits-$(sm))) $(comp-cxxflags$(sm)) \
21			-print-file-name=libgcc_eh.a 2> /dev/null)
22
23# Define these to something to discover accidental use
24CC		:= false
25CXX		:= false
26CPP		:= false
27LD		:= false
28AR		:= false
29NM		:= false
30OBJCOPY		:= false
31OBJDUMP		:= false
32READELF		:= false
33nostdinc	:= --bad-nostdinc-variable
34libgcc  	:= --bad-libgcc-variable
35
36
37