MXE: move the objcopy calls to cmakelists.txt

The objcopy calls to strip the debug symbols out of
subsurface.exe need to happen before the installer is
created (staged).

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Lubomir I. Ivanov 2017-11-14 16:13:42 +02:00
parent f02388d6b7
commit bd9dad7371
2 changed files with 12 additions and 7 deletions

View file

@ -281,10 +281,3 @@ i686-w64-mingw32.shared-cmake \
"$BASEDIR"/subsurface
make $JOBS "$@"
OBJCOPY="i686-w64-mingw32.shared-objcopy"
if [[ "$RELEASE_MAIN" == "RelWithDebInfo" ]] ; then
$OBJCOPY --only-keep-debug subsurface.exe subsurface.exe.debug
$OBJCOPY --strip-debug --strip-unneeded subsurface.exe
$OBJCOPY --add-gnu-debuglink=subsurface.exe.debug subsurface.exe
fi