diff --git a/CMakeLists.txt b/CMakeLists.txt index 492ae914b..d8c64db5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/strip-nix.sh b/strip-nix.sh new file mode 100755 index 000000000..0f890bd8a --- /dev/null +++ b/strip-nix.sh @@ -0,0 +1,4 @@ +#!/bin/sh +strip ./bin/musikcube +strip ./bin/musikcubed +find . -name "*.so" -exec strip "{}" \; 2> /dev/null