sys-devel/dwz: fix build w/ llvm profile

llvm-readelf has different arguments w/ gnu readelf, so always define
READELF as the one in binutils.

Please note: dwz-0.15-readelf.patch isn't applied by upstream.

See also: https://sourceware.org/bugzilla/show_bug.cgi?id=32611

Closes: https://bugs.gentoo.org/945628
Signed-off-by: Z. Liu <zhixu.liu@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/40327
Closes: https://github.com/gentoo/gentoo/pull/40327
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Z. Liu
2025-01-27 13:38:01 +08:00
committed by Sam James
parent 283366d7d6
commit e34418b72b
3 changed files with 12 additions and 3 deletions

View File

@@ -54,7 +54,10 @@ src_prepare() {
src_compile() {
export LANG=C LC_ALL=C # grep find nothing for non-ascii locales
tc-export PKG_CONFIG
local current_binutils_path=$(binutils-config -B)
export READELF="${current_binutils_path}/readelf"
tc-export PKG_CONFIG READELF
export LIBS="-lelf"
if use elibc_musl; then

View File

@@ -54,7 +54,10 @@ src_prepare() {
src_compile() {
export LANG=C LC_ALL=C # grep find nothing for non-ascii locales
tc-export PKG_CONFIG
local current_binutils_path=$(binutils-config -B)
export READELF="${current_binutils_path}/readelf"
tc-export PKG_CONFIG READELF
export LIBS="-lelf"
if use elibc_musl; then

View File

@@ -48,7 +48,10 @@ src_prepare() {
src_compile() {
export LANG=C LC_ALL=C # grep find nothing for non-ascii locales
tc-export PKG_CONFIG
local current_binutils_path=$(binutils-config -B)
export READELF="${current_binutils_path}/readelf"
tc-export PKG_CONFIG READELF
export LIBS="-lelf"
if use elibc_musl; then