diff --git a/cmake/OS_Detection.cmake b/cmake/OS_Detection.cmake
index f5a4be82297098e8499223c9d50fc0e6cef4685f..c300b586f1bdfc682d3187aa0c9efc1fe1bab655 100644
--- a/cmake/OS_Detection.cmake
+++ b/cmake/OS_Detection.cmake
@@ -101,7 +101,7 @@ if(UNIX)
             set(_LOPT "-pg")
             SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -pg")
         else()
-            set(_CCOPT "${CFLAGS_WARNINGS} -O3 -fPIC -fno-strict-aliasing -fno-ident -ffast-math -ftree-vectorize -fno-asynchronous-unwind-tables -ffunction-sections -Wl,--gc-sections -Wl,--strip-all -std=gnu11")
+            set(_CCOPT "${CFLAGS_WARNINGS} -O3 -fPIC -fno-strict-aliasing -fno-ident -ffast-math -ftree-vectorize -fno-asynchronous-unwind-tables -ffunction-sections -Wl,--gc-sections -std=gnu11")
             if(NOT DAP_DBG_INFO)
                 set(_CCOPT "${_CCOPT} -Wl,--strip-all")
             endif()