Skip to content

Commit

Permalink
use CROSS_COMPILE instead of PREFIX to indicate toolchain prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaeckel committed Jun 20, 2017
1 parent b16066c commit 7597d20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ endif

# ranlib tools
ifndef RANLIB
RANLIB:=$(PREFIX)ranlib
RANLIB:=$(CROSS_COMPILE)ranlib
endif
INSTALL_CMD = install

Expand Down
10 changes: 5 additions & 5 deletions makefile_include.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7597d20

Please sign in to comment.