diff options
| -rw-r--r-- | core/plat/mingw/prefix.mak | 12 | ||||
| -rw-r--r-- | core/plat/msys/prefix.mak | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/core/plat/mingw/prefix.mak b/core/plat/mingw/prefix.mak index c190bdb42..09185c3f6 100644 --- a/core/plat/mingw/prefix.mak +++ b/core/plat/mingw/prefix.mak @@ -20,12 +20,12 @@ PRE := $(if $(findstring x86_64,$(BUILD_ARCH)),x86_64-w64-mingw32-,i686-w64- PRE_ := $(if $(BIN),$(BIN)/$(PRE),$(PRE)) # tool -CC = $(PRE_)gcc -LD = $(PRE_)gcc -AR = $(PRE_)ar -STRIP = $(PRE_)strip -RANLIB = $(PRE_)ranlib -AS = $(CC) +CC := $(if $(CC),$(CC),$(PRE_)gcc) +LD := $(if $(CC),$(CC),$(PRE_)gcc) # we do not use ld directly +AR := $(if $(AR),$(AR),$(PRE_)ar) +STRIP := $(if $(STRIP),$(STRIP),$(PRE_)strip) +RANLIB := $(if $(RANLIB),$(RANLIB),$(PRE_)ranlib) +AS := $(CC) RM = rm -f RMDIR = rm -rf CP = cp diff --git a/core/plat/msys/prefix.mak b/core/plat/msys/prefix.mak index 1eacbda9a..19e608031 100644 --- a/core/plat/msys/prefix.mak +++ b/core/plat/msys/prefix.mak @@ -19,12 +19,12 @@ ASM_SUFFIX = .S PRE_ := $(if $(BIN),$(BIN)/$(PRE),) # tool -CC = $(PRE_)gcc -LD = $(PRE_)gcc -AR = $(PRE_)ar -STRIP = $(PRE_)strip -RANLIB = $(PRE_)ranlib -AS = $(CC) +CC := $(if $(CC),$(CC),$(PRE_)gcc) +LD := $(if $(CC),$(CC),$(PRE_)gcc) # we do not use ld directly +AR := $(if $(AR),$(AR),$(PRE_)ar) +STRIP := $(if $(STRIP),$(STRIP),$(PRE_)strip) +RANLIB := $(if $(RANLIB),$(RANLIB),$(PRE_)ranlib) +AS := $(CC) RM = rm -f RMDIR = rm -rf CP = cp |
