openbsd-ports/devel/cmake/patches/patch-Modules_FindKDE3_cmake
dcoppa 7f3e75a1ad Update to cmake-3.1.0
Bulk build by landry@
KDE-related fixes by zhuk@
2014-12-31 11:06:02 +00:00

17 lines
1.0 KiB
Plaintext

$OpenBSD: patch-Modules_FindKDE3_cmake,v 1.2 2014/12/31 11:06:02 dcoppa Exp $
--- Modules/FindKDE3.cmake.orig Mon Dec 15 14:07:43 2014
+++ Modules/FindKDE3.cmake Thu Dec 18 05:37:11 2014
@@ -303,12 +303,6 @@ if(KDE3_FOUND)
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common")
endif ()
- # if no special buildtype is selected, add -O2 as default optimization
- if (NOT CMAKE_BUILD_TYPE AND _KDE3_USE_FLAGS)
- set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2")
- set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
- endif ()
-
#set(CMAKE_SHARED_LINKER_FLAGS "-avoid-version -module -Wl,--no-undefined -Wl,--allow-shlib-undefined")
#set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--fatal-warnings -avoid-version -Wl,--no-undefined -lc")
#set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--fatal-warnings -avoid-version -Wl,--no-undefined -lc")