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 # ranlib tools
ifndef RANLIB ifndef RANLIB
RANLIB:=$(PREFIX)ranlib RANLIB:=$(CROSS_COMPILE)ranlib
endif endif
INSTALL_CMD = install INSTALL_CMD = install

View File

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