Fix copying minidebug symbols to binary

This commit is contained in:
Sandro Mani 2021-08-29 23:02:14 +02:00
parent 6c5a8d2258
commit 859cfeb06d

View File

@ -29,7 +29,7 @@ do
pushd `dirname $dest`
keep_symbols=`mktemp`
mingw-nm $dest --format=sysv --defined-only | awk -F \| '{ if ($4 ~ "Function") print $1 }' | sort > "$keep_symbols"
mingw-objcopy --add-gnu-debuglink=`basename $dest` --strip-unneeded `basename $f` --keep-symbols="$keep_symbols" || :
mingw-objcopy --add-gnu-debuglink=`basename $dest` --strip-unneeded $f --keep-symbols="$keep_symbols" || :
rm -f "$keep_symbols"
popd
done