use CROSS_COMPILE instead of PREFIX to indicate toolchain prefix
This commit is contained in:
parent
b16066cbfc
commit
7597d20c78
2
makefile
2
makefile
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user