diff options
| author | ruki <[email protected]> | 2022-03-07 23:33:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-03-07 23:33:57 +0800 |
| commit | cca4f1aaf5ebf2a3a513520645d4d04f89373913 (patch) | |
| tree | ebe5f5ed4f26d24a2cf1385127fd6cd50463cb1f | |
| parent | 9361ffcc1a64725cf5a909f5d434338816c7ad0b (diff) | |
improve prefix.mak
| -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 |
