ports/net/utox/patches/patch-CMakeLists_txt

22 lines
843 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
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)