mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
f02388d6b7
commit
bd9dad7371
2 changed files with 12 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue