More universal method for stripping binaries.

This commit is contained in:
casey langen 2019-09-23 13:21:29 +00:00
parent 624b454b81
commit c45cf6e4db
2 changed files with 6 additions and 2 deletions

View File

@ -19,8 +19,8 @@ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -frtti -fexceptions")
# enable for additional memory checking with fsanitize
# set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g3 -fsanitize=address,undefined")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2 -frtti -fexceptions -s")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2 -s")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2 -frtti -fexceptions")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2")
if (${LINK_STATICALLY} MATCHES "true")
set(Boost_USE_STATIC_LIBS ON)

4
strip-nix.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
strip ./bin/musikcube
strip ./bin/musikcubed
find . -name "*.so" -exec strip "{}" \; 2> /dev/null