mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user