--- src/CMakeLists.txt.orig 2022-02-23 09:48:00 UTC +++ src/CMakeLists.txt @@ -52,7 +52,7 @@ endif() set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_ASAN} -O0 -g -ggdb -Werror -DDEBUG -D_DEBUG -UNDEBUG -Wno-unused-variable" ) -set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_ASAN} -O3 -DNDEBUG") +set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_ASAN} -DNDEBUG") set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-Wl,-s") set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELEASE} -g") set(CMAKE_C_FLAGS_RELEASEWITHDEBINFO ${CMAKE_C_FLAGS_RELWITHDEBINFO}) @@ -174,13 +174,6 @@ if(BUILD_SHARED_LIBS) SOVERSION ${PROJECT_VERSION_MAJOR} PUBLIC_HEADER "${PUB_HDRS}" DEFINE_SYMBOL IW_API_EXPORTS) - - if(CMAKE_BUILD_TYPE STREQUAL "Release") - add_custom_command( - TARGET iwnet - POST_BUILD - COMMAND ${STRIP_CMD} $) - endif() set_target_properties( iwnet_s