mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 05:40:30 -04:00
- Take maintainership Changes: https://github.com/uTox/uTox/releases/tag/v0.17.1 PR: 240721 Approved by: portmaster@BSDforge.com (maintainer timeout, 14 days)
22 lines
971 B
Text
22 lines
971 B
Text
--- CMakeLists.txt.orig 2019-09-21 02:09:21 UTC
|
|
+++ CMakeLists.txt
|
|
@@ -178,8 +178,7 @@ add_cflag("-fPIC")
|
|
# 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_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} -Os -s")
|
|
+ set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} -s")
|
|
|
|
if(LINUX)
|
|
# enable Link Time Optimization on gcc (linux only currently)
|
|
@@ -214,8 +213,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_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} -Oz -s")
|
|
+ set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} -s")
|
|
|
|
if(FREEBSD)
|
|
set(LIBRARIES ${LIBRARIES} "cxxrt")
|