extra-cmake-modules: temporary workaround linker errors for gold / gcc 8.2

* Reported at [1]
* Others share same [2]

Hope not to forget removal once root cause is fixed...

[1] http://lists.openembedded.org/pipermail/openembedded-core/2018-August/154696.html
[2] https://bugs.gentoo.org/663512

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2018-08-23 00:44:32 +02:00
parent 5ca90b5476
commit 1b623975ae
2 changed files with 34 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ DEPENDS = "qttools-native"
SRC_URI[md5sum] = "44d277d5df5aa806f8caf4b12541b15c"
SRC_URI[sha256sum] = "c09fb851751f2e1c1231130dbce62d5dab396444fce7ed18662ada9ebd7ced1e"
SRC_URI += "file://0001-Temporary-workaround-gold-linker-errors.patch"
PV = "${KF5_VERSION}"

View File

@@ -0,0 +1,33 @@
From 372afa604264e70963d838f46ce30938d71226d2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
Date: Thu, 23 Aug 2018 00:41:35 +0200
Subject: [PATCH] Temporary workaround gold linker errors
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Upstream-Status: Pending
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
---
kde-modules/KDECompilerSettings.cmake | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kde-modules/KDECompilerSettings.cmake b/kde-modules/KDECompilerSettings.cmake
index 44358fb..1402796 100644
--- a/kde-modules/KDECompilerSettings.cmake
+++ b/kde-modules/KDECompilerSettings.cmake
@@ -344,8 +344,8 @@ if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND NOT APPLE) OR
(CMAKE_CXX_COMPILER_ID STREQUAL "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}")
--
2.14.4