From 843cc238f32870117b7b3c85d28f914437fcf694 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 23 May 2020 12:46:23 +0100 Subject: [PATCH] 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 --- mk/clang.mk | 2 +- mk/gcc.mk | 2 +- mk/tcc.mk | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mk/clang.mk b/mk/clang.mk index 60c56b3054..6c58de9fbc 100644 --- a/mk/clang.mk +++ b/mk/clang.mk @@ -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 diff --git a/mk/gcc.mk b/mk/gcc.mk index 27759944ed..c35811b026 100644 --- a/mk/gcc.mk +++ b/mk/gcc.mk @@ -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 diff --git a/mk/tcc.mk b/mk/tcc.mk index 8f573da16a..e55a51b3bb 100644 --- a/mk/tcc.mk +++ b/mk/tcc.mk @@ -1,5 +1,5 @@ CC=tcc -RANLIB=ranlib +RANLIB?=ranlib ONELIB=0 AR=ar CC_AR=${AR} -r ${LIBAR}