We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc7913a commit b36648aCopy full SHA for b36648a
CMakeLists.txt
@@ -125,9 +125,9 @@ set_target_properties( ${PROJECT_NAME} PROPERTIES POSITION_INDEPENDENT_CODE TRUE
125
126
set_target_properties( ${PROJECT_NAME} PROPERTIES LINK_SEARCH_START_STATIC TRUE ) # Add "-Bstatic"
127
128
-# Build static executable if possible
129
-if( NOT (CMAKE_SYSTEM_NAME MATCHES "Darwin" OR MSVC) )
130
- set( CMAKE_EXE_LINKER_FLAGS "-static" )
+# Build stripped static executable if possible
+if( (NOT (CMAKE_SYSTEM_NAME MATCHES "Darwin" OR MSVC)) AND (NOT (CMAKE_BUILD_TYPE STREQUAL "debug")))
+ set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static -s" )
131
endif()
132
133
# Checking for math library 'libm' used when including <math.h> in pilight sources
0 commit comments