xref: /optee_os/mk/gcc.mk (revision b01047730e77127c23a36591643eeb8bb0487d68)
1*b0104773SPascal Brand
2*b0104773SPascal BrandCC	= $(CROSS_COMPILE)gcc
3*b0104773SPascal BrandLD	= $(CROSS_COMPILE)ld
4*b0104773SPascal BrandAR	= $(CROSS_COMPILE)ar
5*b0104773SPascal BrandNM	= $(CROSS_COMPILE)nm
6*b0104773SPascal BrandOBJCOPY	= $(CROSS_COMPILE)objcopy
7*b0104773SPascal BrandOBJDUMP	= $(CROSS_COMPILE)objdump
8*b0104773SPascal BrandREADELF = $(CROSS_COMPILE)readelf
9*b0104773SPascal Brand
10*b0104773SPascal Brandnostdinc	:= -nostdinc -isystem $(shell $(CC) -print-file-name=include \
11*b0104773SPascal Brand			2> /dev/null)
12*b0104773SPascal Brand
13*b0104773SPascal Brand# Get location of libgcc from gcc
14*b0104773SPascal Brandlibgcc  	:= $(shell $(CC) $(comp-cflags$(sm)) -print-libgcc-file-name \
15*b0104773SPascal Brand			2> /dev/null)
16*b0104773SPascal Brand
17*b0104773SPascal Brand
18