mirror of
https://git.freebsd.org/ports.git
synced 2025-06-21 04:30:37 -04:00
* Remove settings of optimization from cmake/modules/c_flags.cmake as per section 13.9 of Porter's Handbook * Switch to DISTVERSION * Pet portclippy * Reformat Makefile with portfmt PR: 257708 Approved by: maitainer timeout (> 1 month) Differential Revision: https://reviews.freebsd.org/D32545
18 lines
589 B
CMake
18 lines
589 B
CMake
Work around upstream bug #1175 and make the build more robust
|
|
against minor platform differences. -Werror should not be
|
|
provided in release builds.
|
|
|
|
--- cmake/modules/c_flags.cmake.orig 2021-04-24 22:24:02 UTC
|
|
+++ cmake/modules/c_flags.cmake
|
|
@@ -44,11 +44,3 @@ endif ()
|
|
if (NOT (WIN32 OR (EXISTS "/etc/debian_version" AND MINGW)))
|
|
add_cflag_if_supported("-fPIC")
|
|
endif ()
|
|
-
|
|
-if (${CMAKE_BUILD_TYPE} MATCHES "Debug")
|
|
- add_cflag_if_supported("-ggdb")
|
|
- add_cflag_if_supported("-O0")
|
|
-else ()
|
|
- add_cflag_if_supported("-O2")
|
|
- add_cflag_if_supported("-Werror")
|
|
-endif ()
|