diff --git a/Makefile b/Makefile index 2dc2956c9..326766022 100644 --- a/Makefile +++ b/Makefile @@ -102,7 +102,7 @@ export HOSTCC CC := ${CROSS_COMPILE}gcc CPP := ${CROSS_COMPILE}gcc -E AS := ${CROSS_COMPILE}gcc -AR := ${CROSS_COMPILE}ar +AR := ${CROSS_COMPILE}gcc-ar LINKER := ${CROSS_COMPILE}ld OC := ${CROSS_COMPILE}objcopy OD := ${CROSS_COMPILE}objdump diff --git a/lib/romlib/Makefile b/lib/romlib/Makefile index 8a437440c..3b62aaa15 100644 --- a/lib/romlib/Makefile +++ b/lib/romlib/Makefile @@ -5,7 +5,7 @@ # AS = $(CROSS_COMPILE)gcc -AR = $(CROSS_COMPILE)ar +AR = $(CROSS_COMPILE)gcc-ar LD = $(CROSS_COMPILE)ld OC = $(CROSS_COMPILE)objcopy CPP = $(CROSS_COMPILE)gcc -E diff --git a/plat/rockchip/rk3399/drivers/m0/Makefile b/plat/rockchip/rk3399/drivers/m0/Makefile index 17632460d..8783269da 100644 --- a/plat/rockchip/rk3399/drivers/m0/Makefile +++ b/plat/rockchip/rk3399/drivers/m0/Makefile @@ -41,7 +41,7 @@ LDFLAGS := -Wl,--gc-sections -Wl,--build-id=none # Cross tool CC := ${M0_CROSS_COMPILE}gcc CPP := ${M0_CROSS_COMPILE}gcc -E -AR := ${M0_CROSS_COMPILE}ar +AR := ${M0_CROSS_COMPILE}gcc-ar OC := ${M0_CROSS_COMPILE}objcopy OD := ${M0_CROSS_COMPILE}objdump NM := ${M0_CROSS_COMPILE}nm