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
|
||||
ifndef RANLIB
|
||||
RANLIB:=$(PREFIX)ranlib
|
||||
RANLIB:=$(CROSS_COMPILE)ranlib
|
||||
endif
|
||||
INSTALL_CMD = install
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user