22 lines
843 B
Text
22 lines
843 B
Text
|
Index: CMakeLists.txt
|
||
|
--- CMakeLists.txt.orig
|
||
|
+++ CMakeLists.txt
|
||
|
@@ -180,7 +180,7 @@ add_cflag("-fno-common")
|
||
|
# Fix GNU stack
|
||
|
if(CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||
|
# Have ld strip the symbols from Release and MinSizeRel build types.
|
||
|
- set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Os")
|
||
|
+ set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ")
|
||
|
set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} -Os -s")
|
||
|
|
||
|
if(LINUX)
|
||
|
@@ -216,7 +216,7 @@ elseif(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
||
|
endif()
|
||
|
|
||
|
# Have ld strip the symbols from Release and MinSizeRel build types. (-Oz is clang specific)
|
||
|
- set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Os")
|
||
|
+ set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ")
|
||
|
set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} -Oz -s")
|
||
|
|
||
|
if(FREEBSD)
|