mk: allow RANLIB override

To ease cross-development Gentoo alows installing only fully
qualified toolchains tools:
    x86_64-pc-linux-gnu-ranlib
and similar.

The change allow overriding RANLIB variable similar
to existing CC, HOST_CC, LD and friends.

Reported-by: Agostino Sarubbo
Bug: https://bugs.gentoo.org/720700
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
Sergei Trofimovich 2020-05-23 12:46:23 +01:00 committed by Anton Kochkov
parent fea70914e8
commit 843cc238f3
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
ifeq (${_INCLUDE_MK_CLANG_},)
_INCLUDE_MK_CLANG_=1
CC?=clang
RANLIB=ranlib
RANLIB?=ranlib
ONELIB=0
CC_AR=ar q ${LIBAR}
CFLAGS+=-MD

View File

@ -2,7 +2,7 @@ ifeq (${_INCLUDE_MK_GCC_},)
_INCLUDE_MK_GCC_=1
CC?=gcc
OBJCOPY=objcopy
RANLIB=ranlib
RANLIB?=ranlib
ONELIB=0
CC_AR=ar q ${LIBAR}
CFLAGS+=-MD

View File

@ -1,5 +1,5 @@
CC=tcc
RANLIB=ranlib
RANLIB?=ranlib
ONELIB=0
AR=ar
CC_AR=${AR} -r ${LIBAR}