Fix copying minidebug symbols to binary
This commit is contained in:
parent
6c5a8d2258
commit
859cfeb06d
@ -29,7 +29,7 @@ do
|
|||||||
pushd `dirname $dest`
|
pushd `dirname $dest`
|
||||||
keep_symbols=`mktemp`
|
keep_symbols=`mktemp`
|
||||||
mingw-nm $dest --format=sysv --defined-only | awk -F \| '{ if ($4 ~ "Function") print $1 }' | sort > "$keep_symbols"
|
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"
|
rm -f "$keep_symbols"
|
||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user