diff options
-rw-r--r-- | CMakeLists.txt | 10 | ||||
-rw-r--r-- | VERSION | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1f33348..56f7df8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,10 +20,12 @@ elseif(WIN32) set(CMAKE_C_FLAGS "-mstackrealign ${CMAKE_C_FLAGS}") endif() -if(APPLE) - set(CMAKE_MODULE_LINKER_FLAGS "-Wl,-dead_strip ${CMAKE_MODULE_LINKER_FLAGS}") -else() - set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--gc-sections -Wl,-s ${CMAKE_MODULE_LINKER_FLAGS}") +if(${CMAKE_BUILD_TYPE} STREQUAL "Release") + if(APPLE) + set(CMAKE_MODULE_LINKER_FLAGS "-Wl,-dead_strip ${CMAKE_MODULE_LINKER_FLAGS}") + else() + set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--gc-sections -Wl,-s ${CMAKE_MODULE_LINKER_FLAGS}") + endif() endif() add_definitions("-D_GNU_SOURCE=1") # asprintf @@ -1 +1 @@ -0.13.19 +0.13.21 |