mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-13 09:41:00 +00:00
More universal method for stripping binaries.
This commit is contained in:
parent
624b454b81
commit
c45cf6e4db
@ -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
4
strip-nix.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
strip ./bin/musikcube
|
||||
strip ./bin/musikcubed
|
||||
find . -name "*.so" -exec strip "{}" \; 2> /dev/null
|
Loading…
Reference in New Issue
Block a user