mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-10-06 01:12:40 +02:00
build/linux: Ensure that 'ld-linux' have .debug symbols
x86_64 have a peculiar path so this trick is needed.
This commit is contained in:
@@ -392,7 +392,7 @@ done
|
||||
if [ "$GITLAB_CI" ]; then
|
||||
export DEBUGINFOD_URLS="https://debuginfod.debian.net"
|
||||
fi
|
||||
bin_array=($(find "$USR_DIR/bin" "$USR_DIR/$LIB_DIR" ! -iname "*.dumb*" -type f -exec head -c 4 {} \; -exec echo " {}" \; | grep ^.ELF))
|
||||
bin_array=($(find "$USR_DIR/bin" "$USR_DIR/$LIB_DIR" "$(dirname $APP_DIR/$LD_LINUX)" ! -iname "*.dumb*" -type f -exec head -c 4 {} \; -exec echo " {}" \; | grep ^.ELF))
|
||||
for bin in "${bin_array[@]}"; do
|
||||
if [[ ! "$bin" =~ 'ELF' ]] && [[ ! "$bin" =~ '.debug' ]]; then
|
||||
grep -a -q '.gnu_debuglink' $bin && echo "(INFO): bundling $bin debug symbols to $(dirname $bin)" && cp -f $(debuginfod-find debuginfo $bin) "$(dirname $bin)/$(readelf --string-dump=.gnu_debuglink $bin | sed -n '/]/{s/.* //;p;q}')" || $true
|
||||
|
Reference in New Issue
Block a user