Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 25 May 2020 20:47:18
Message-Id: 1590439627.ccdea417c4a259a03a745e3a977ac56827be5ae4.slyfox@gentoo
1 commit: ccdea417c4a259a03a745e3a977ac56827be5ae4
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 25 12:58:50 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Mon May 25 20:47:07 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccdea417
7
8 toolchain-funcs.eclass: export tc-get*READELF helpers
9
10 Bug: https://bugs.gentoo.org/725304
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 eclass/toolchain-funcs.eclass | 9 +++++++++
14 1 file changed, 9 insertions(+)
15
16 diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
17 index 1bc6cbbc108..89b29ac24a0 100644
18 --- a/eclass/toolchain-funcs.eclass
19 +++ b/eclass/toolchain-funcs.eclass
20 @@ -85,6 +85,10 @@ tc-getNM() { tc-getPROG NM nm "$@"; }
21 # @USAGE: [toolchain prefix]
22 # @RETURN: name of the archiver indexer
23 tc-getRANLIB() { tc-getPROG RANLIB ranlib "$@"; }
24 +# @FUNCTION: tc-getREADELF
25 +# @USAGE: [toolchain prefix]
26 +# @RETURN: name of the ELF reader
27 +tc-getREADELF() { tc-getPROG READELF readelf "$@"; }
28 # @FUNCTION: tc-getOBJCOPY
29 # @USAGE: [toolchain prefix]
30 # @RETURN: name of the object copier
31 @@ -158,6 +162,10 @@ tc-getBUILD_NM() { tc-getBUILD_PROG NM nm "$@"; }
32 # @USAGE: [toolchain prefix]
33 # @RETURN: name of the archiver indexer for building binaries to run on the build machine
34 tc-getBUILD_RANLIB() { tc-getBUILD_PROG RANLIB ranlib "$@"; }
35 +# @FUNCTION: tc-getBUILD_READELF
36 +# @USAGE: [toolchain prefix]
37 +# @RETURN: name of the ELF reader for building binaries to run on the build machine
38 +tc-getBUILD_READELF() { tc-getBUILD_PROG READELF readelf "$@"; }
39 # @FUNCTION: tc-getBUILD_OBJCOPY
40 # @USAGE: [toolchain prefix]
41 # @RETURN: name of the object copier for building binaries to run on the build machine
42 @@ -376,6 +384,7 @@ tc-env_build() {
43 NM=$(tc-getBUILD_NM) \
44 PKG_CONFIG=$(tc-getBUILD_PKG_CONFIG) \
45 RANLIB=$(tc-getBUILD_RANLIB) \
46 + READELF=$(tc-getBUILD_READELF) \
47 "$@"
48 }