mk: allow OBJCOPY override

To ease cross-development Gentoo alows installing only fully
qualified toolchains tools:
    x86_64-pc-linux-gnu-objcopy
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:49:10 +01:00 committed by Anton Kochkov
parent 843cc238f3
commit 56faae7627
1 changed files with 1 additions and 1 deletions

View File

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