dev-util/ccache: use ${CHOST}-objdump

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
Sergei Trofimovich
2020-06-27 10:21:17 +01:00
parent cda347270b
commit 068ded854e
2 changed files with 21 additions and 0 deletions

View File

@@ -3,6 +3,8 @@
EAPI=7
inherit toolchain-funcs
DESCRIPTION="fast compiler cache"
HOMEPAGE="https://ccache.dev/"
SRC_URI="https://github.com/ccache/ccache/releases/download/v${PV}/ccache-${PV}.tar.xz"
@@ -26,6 +28,7 @@ RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}"/${PN}-3.5-nvcc-test.patch
"${FILESDIR}"/${P}-objdump.patch
)
src_prepare() {
@@ -34,6 +37,9 @@ src_prepare() {
sed \
-e "/^EPREFIX=/s:'':'${EPREFIX}':" \
"${FILESDIR}"/ccache-config-3 > ccache-config || die
# mainly used in tests
tc-export OBJDUMP
}
src_configure() {

View File

@@ -0,0 +1,15 @@
Allow ${CHOST}-objdump (or any other override)
--- a/test/suites/debug_prefix_map.bash
+++ b/test/suites/debug_prefix_map.bash
@@ -24,9 +24,9 @@ objdump_cmd() {
if $HOST_OS_APPLE; then
xcrun dwarfdump -r0 $1
elif $HOST_OS_FREEBSD; then
- objdump -W $1
+ ${OBJDUMP-objdump} -W $1
else
- objdump -g $1
+ ${OBJDUMP-objdump} -g $1
fi
}