1 --- extra-cmake-modules-v5.98.0/kde-modules/KDECompilerSettings.cmake.orig 2022-08-27 11:14:28.000000000 +0000
2 +++ extra-cmake-modules-v5.98.0/kde-modules/KDECompilerSettings.cmake 2022-09-24 17:25:43.599975202 +0000
4 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-operator-names")
7 -# Default to hidden visibility for symbols
8 -set(CMAKE_C_VISIBILITY_PRESET hidden)
9 -set(CMAKE_CXX_VISIBILITY_PRESET hidden)
10 -set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
11 +# Default to default visibility for symbols
12 +set(CMAKE_C_VISIBILITY_PRESET default)
13 +set(CMAKE_CXX_VISIBILITY_PRESET default)
14 +set(CMAKE_VISIBILITY_INLINES_HIDDEN 0)
16 # No sane project should be affected by CMP0063, so suppress the warnings
17 # generated by the above visibility settings in CMake >= 3.3
18 cmake_policy(SET CMP0063 NEW)
21 -if (UNIX AND NOT APPLE AND NOT CYGWIN)
22 +#if (UNIX AND NOT APPLE AND NOT CYGWIN)
23 # Enable adding DT_RUNPATH, which means that LD_LIBRARY_PATH takes precedence
24 # over the built-in rPath
25 - set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--enable-new-dtags ${CMAKE_SHARED_LINKER_FLAGS}")
26 - set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--enable-new-dtags ${CMAKE_MODULE_LINKER_FLAGS}")
27 - set(CMAKE_EXE_LINKER_FLAGS "-Wl,--enable-new-dtags ${CMAKE_EXE_LINKER_FLAGS}")
29 +# set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--enable-new-dtags ${CMAKE_SHARED_LINKER_FLAGS}")
30 +# set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--enable-new-dtags ${CMAKE_MODULE_LINKER_FLAGS}")
31 +# set(CMAKE_EXE_LINKER_FLAGS "-Wl,--enable-new-dtags ${CMAKE_EXE_LINKER_FLAGS}")
34 if (CMAKE_SYSTEM_NAME STREQUAL GNU)
35 # Enable multithreading with the pthread library
37 (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT APPLE) OR
38 (CMAKE_CXX_COMPILER_ID STREQUAL "Intel" AND NOT WIN32))
39 # Linker warnings should be treated as errors
40 - set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--fatal-warnings ${CMAKE_SHARED_LINKER_FLAGS}")
41 - set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--fatal-warnings ${CMAKE_MODULE_LINKER_FLAGS}")
42 + #set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--fatal-warnings ${CMAKE_SHARED_LINKER_FLAGS}")
43 + #set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--fatal-warnings ${CMAKE_MODULE_LINKER_FLAGS}")
45 # Do not allow undefined symbols, even in non-symbolic shared libraries
46 # On OpenBSD we must disable this to allow the stuff to properly compile without explicit libc specification
47 - if (NOT CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
48 - set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}")
49 - set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_MODULE_LINKER_FLAGS}")
51 + # if (NOT CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
52 + # set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}")
53 + # set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_MODULE_LINKER_FLAGS}")
57 set(_KDE_GCC_COMMON_WARNING_FLAGS "-Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef")