Merge #11326: Fix crash on shutdown with invalid wallet
[bitcoinplatinum.git] / contrib / devtools / split-debug.sh.in
blobdeda49cc541043d0a05aee05038c69ee1dee51b3
1 #!/bin/sh
3 if [ $# -ne 3 ];
4 then echo "usage: $0 <input> <stripped-binary> <debug-binary>"
5 fi
7 @OBJCOPY@ --enable-deterministic-archives -p --only-keep-debug $1 $3
8 @OBJCOPY@ --enable-deterministic-archives -p --strip-debug $1 $2
9 @STRIP@ --enable-deterministic-archives -p -s $2
10 @OBJCOPY@ --enable-deterministic-archives -p --add-gnu-debuglink=$3 $2