Do not explicitly strip binaries on Linux

Fedora, Flatpak, Debian, and possibly other distributions as well, have
packaging helpers who will strip out debug symbols into separate debug
packages.

Currently, the explicitly added "-s" EXE_LINKER_FLAG renders these
automatically created debug packages completely useless, so this change
removes it.
This commit is contained in:
Johannes Maibaum 2021-03-23 12:19:38 +01:00 committed by Ian McInerney
parent eb8744816e
commit 2467b7e6c5
1 changed files with 0 additions and 8 deletions

View File

@ -397,14 +397,6 @@ if( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
# Allow linking for Boost for the UUID against bcrypt
set( EXTRA_LIBS "bcrypt" )
elseif( NOT APPLE )
# Thou shalt not link vaporware and tell us it's a valid DSO (apple ld doesn't support it)
# temporarily disabled due to breaking ASAN-enabled builds - Tom
# set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
# set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
set( CMAKE_EXE_LINKER_FLAGS_RELEASE "-s" )
endif()
if( APPLE )