summaryrefslogtreecommitdiff
path: root/extra/extra-cmake-modules/extra-cmake-modules-5.59.0-ld-no-fatal-warning.patch
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2019-07-05 12:50:46 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2019-07-05 12:50:46 +0200
commit81ea46923a51240ed9ef350ada6cbd88124ebb2d (patch)
tree035a1f3402fff0914740f4ce1914fa0000b05f6e /extra/extra-cmake-modules/extra-cmake-modules-5.59.0-ld-no-fatal-warning.patch
parentfe1931a16e36d1f544c04f0229758ddba1884462 (diff)
downloadpackages-81ea46923a51240ed9ef350ada6cbd88124ebb2d.tar.xz
extra/extra-cmake-modules: made linker warnings non-fatal
Diffstat (limited to 'extra/extra-cmake-modules/extra-cmake-modules-5.59.0-ld-no-fatal-warning.patch')
-rw-r--r--extra/extra-cmake-modules/extra-cmake-modules-5.59.0-ld-no-fatal-warning.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/extra/extra-cmake-modules/extra-cmake-modules-5.59.0-ld-no-fatal-warning.patch b/extra/extra-cmake-modules/extra-cmake-modules-5.59.0-ld-no-fatal-warning.patch
new file mode 100644
index 00000000..b4aa49f5
--- /dev/null
+++ b/extra/extra-cmake-modules/extra-cmake-modules-5.59.0-ld-no-fatal-warning.patch
@@ -0,0 +1,14 @@
+diff -rauN extra-cmake-modules-5.59.0/kde-modules/KDECompilerSettings.cmake extra-cmake-modules-5.59.0-ld-no-fatal-warning-patch/kde-modules/KDECompilerSettings.cmake
+--- extra-cmake-modules-5.59.0/kde-modules/KDECompilerSettings.cmake 2019-05-31 16:55:38.000000000 +0200
++++ extra-cmake-modules-5.59.0-ld-no-fatal-warning-patch/kde-modules/KDECompilerSettings.cmake 2019-07-05 12:29:52.239420845 +0200
+@@ -344,8 +344,8 @@
+ (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT APPLE) OR
+ (CMAKE_CXX_COMPILER_ID STREQUAL "Intel" AND NOT WIN32))
+ # Linker warnings should be treated as errors
+- set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--fatal-warnings ${CMAKE_SHARED_LINKER_FLAGS}")
+- set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--fatal-warnings ${CMAKE_MODULE_LINKER_FLAGS}")
++ #set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--fatal-warnings ${CMAKE_SHARED_LINKER_FLAGS}")
++ #set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--fatal-warnings ${CMAKE_MODULE_LINKER_FLAGS}")
+
+ # Do not allow undefined symbols, even in non-symbolic shared libraries
+ set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}")