void-packages/srcpkgs/rmilter/patches/fix-cflags.patch
Đoàn Trần Công Danh 0b75183b5e rmilter: de-vendor most of dependencies
While we're at it, set the group to _rmilter.
2021-04-04 13:36:10 +07:00

24 lines
758 B
Diff

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -296,18 +296,7 @@ IF(SUPPORT_STD_FLAG)
ENDIF(SUPPORT_STD_FLAG)
# Optimization flags
-IF(NOT CMAKE_C_OPT_FLAGS)
- IF(ENABLE_OPTIMIZATION MATCHES "ON")
- SET(CMAKE_C_OPT_FLAGS "-O3 -fstrict-aliasing")
- ELSE(ENABLE_OPTIMIZATION MATCHES "ON")
- SET(CMAKE_C_OPT_FLAGS "-g -O2 -fstrict-aliasing")
- ENDIF(ENABLE_OPTIMIZATION MATCHES "ON")
-ENDIF(NOT CMAKE_C_OPT_FLAGS)
-
-IF(ENABLE_DEBUG MATCHES "ON")
- SET(CMAKE_BUILD_TYPE "Debug")
- SET(WITH_DEBUG 1)
-ENDIF(ENABLE_DEBUG MATCHES "ON")
+SET(CMAKE_C_OPT_FLAGS "-fstrict-aliasing")
SET(CMAKE_C_FLAGS "${CMAKE_C_OPT_FLAGS} ${CMAKE_C_FLAGS} ${CMAKE_C_WARN_FLAGS}")