--- kicad-5.1.0/CMakeLists.txt.orig 2019-03-08 13:31:50.000000000 +0100 +++ kicad-5.1.0/CMakeLists.txt 2019-03-15 22:45:43.123178290 +0100 @@ -311,7 +311,6 @@ endif() if( MINGW ) - set( CMAKE_EXE_LINKER_FLAGS_RELEASE "-s" ) # Since version 2.8.5, Cmake uses a response file (.rsp) to # pass the list of include paths to gcc @@ -343,8 +342,6 @@ set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" ) set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" ) - set( CMAKE_EXE_LINKER_FLAGS_RELEASE "-s" ) - # Defeat ELF's ability to use the GOT to replace locally implemented functions # with ones from another module. # https://bugs.launchpad.net/kicad/+bug/1322354