Gentoo Archives: gentoo-dev

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-dev@l.g.o
Cc: Sergei Trofimovich <slyfox@g.o>
Subject: [gentoo-dev] [PATCH 1/2] toolchain-funcs.eclass: export tc-get*READELF helpers, bug #725304
Date: Mon, 25 May 2020 13:07:00
Message-Id: 20200525130651.4000522-1-slyfox@gentoo.org
1 Bug: https://bugs.gentoo.org/725304
2 Signed-off-by: Sergei Trofimovich <slyfox@g.o>
3 ---
4 eclass/toolchain-funcs.eclass | 9 +++++++++
5 1 file changed, 9 insertions(+)
6
7 diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
8 index 1bc6cbbc108..709c3baca53 100644
9 --- a/eclass/toolchain-funcs.eclass
10 +++ b/eclass/toolchain-funcs.eclass
11 @@ -85,6 +85,10 @@ tc-getNM() { tc-getPROG NM nm "$@"; }
12 # @USAGE: [toolchain prefix]
13 # @RETURN: name of the archiver indexer
14 tc-getRANLIB() { tc-getPROG RANLIB ranlib "$@"; }
15 +# @FUNCTION: tc-getREADELF
16 +# @USAGE: [toolchain prefix]
17 +# @RETURN: name of the ELF enspector
18 +tc-getREADELF() { tc-getPROG READELF readelf "$@"; }
19 # @FUNCTION: tc-getOBJCOPY
20 # @USAGE: [toolchain prefix]
21 # @RETURN: name of the object copier
22 @@ -158,6 +162,10 @@ tc-getBUILD_NM() { tc-getBUILD_PROG NM nm "$@"; }
23 # @USAGE: [toolchain prefix]
24 # @RETURN: name of the archiver indexer for building binaries to run on the build machine
25 tc-getBUILD_RANLIB() { tc-getBUILD_PROG RANLIB ranlib "$@"; }
26 +# @FUNCTION: tc-getBUILD_READELF
27 +# @USAGE: [toolchain prefix]
28 +# @RETURN: name of the ELF enspector for building binaries to run on the build machine
29 +tc-getBUILD_READELF() { tc-getBUILD_PROG READELF readelf "$@"; }
30 # @FUNCTION: tc-getBUILD_OBJCOPY
31 # @USAGE: [toolchain prefix]
32 # @RETURN: name of the object copier for building binaries to run on the build machine
33 @@ -376,6 +384,7 @@ tc-env_build() {
34 NM=$(tc-getBUILD_NM) \
35 PKG_CONFIG=$(tc-getBUILD_PKG_CONFIG) \
36 RANLIB=$(tc-getBUILD_RANLIB) \
37 + READELF=$(tc-getBUILD_READELF) \
38 "$@"
39 }
40
41 --
42 2.26.2

Replies