diff options
Diffstat (limited to 'scripts/find-debuginfo.sh')
-rw-r--r-- | scripts/find-debuginfo.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh index e8ff02f02..84629dc04 100644 --- a/scripts/find-debuginfo.sh +++ b/scripts/find-debuginfo.sh @@ -110,6 +110,7 @@ LINKSFILE="$BUILDDIR/debuglinks.list" > "$LINKSFILE" debugdir="${RPM_BUILD_ROOT}/usr/lib/debug" +tooldir=$(rpm --eval %{_rpmconfigdir}) strip_to_debug() { @@ -311,7 +312,7 @@ while read nlinks inum f; do echo "extracting debug info from $f" id=$($(DEBUGEDIT=$(which debugedit 2>/dev/null); \ - echo ${DEBUGEDIT:-/usr/lib/rpm/debugedit}) -b "$RPM_BUILD_DIR" \ + echo ${DEBUGEDIT:-${tooldir}/debugedit}) -b "$RPM_BUILD_DIR" \ -d /usr/src/debug -i -l "$SOURCEFILE" "$f") || exit if [ $nlinks -gt 1 ]; then eval linkedid_$inum=\$id |