use CROSS_COMPILE instead of PREFIX to indicate toolchain prefix

This commit is contained in:
Steffen Jaeckel 2017-06-19 11:51:40 +02:00
parent b16066cbfc
commit 7597d20c78
2 changed files with 6 additions and 6 deletions

View File

@ -23,7 +23,7 @@ endif
# ranlib tools
ifndef RANLIB
RANLIB:=$(PREFIX)ranlib
RANLIB:=$(CROSS_COMPILE)ranlib
endif
INSTALL_CMD = install

View File

@ -8,15 +8,15 @@ VERSION=1.17
VERSION_LT=0:117
# Compiler and Linker Names
ifndef PREFIX
PREFIX:=
ifndef CROSS_COMPILE
CROSS_COMPILE:=
endif
ifeq ($(CC),cc)
CC := $(PREFIX)gcc
CC := $(CROSS_COMPILE)gcc
endif
LD:=$(PREFIX)ld
AR:=$(PREFIX)ar
LD:=$(CROSS_COMPILE)ld
AR:=$(CROSS_COMPILE)ar
# Archiver [makes .a files]
#AR=ar