mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
sci-astronomy/stellarium: fix link error in telescope control
Closes: https://bugs.gentoo.org/980281 Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org> Part-of: https://codeberg.org/gentoo/gentoo/pulls/1676 Merges: https://codeberg.org/gentoo/gentoo/pulls/1676 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
https://github.com/Stellarium/stellarium/pull/5067
|
||||
|
||||
From 4248e0e65ee57ba17bbda9f49999de4934f14865 Mon Sep 17 00:00:00 2001
|
||||
From: Ivan Lloro <Ivan.Lloro.Boada@gmail.com>
|
||||
Date: Tue, 4 Aug 2026 09:56:20 +0100
|
||||
Subject: [PATCH] Fix link error when --as-needed linker flag set
|
||||
|
||||
---
|
||||
plugins/TelescopeControl/src/gui/CMakeLists.txt | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/plugins/TelescopeControl/src/gui/CMakeLists.txt b/plugins/TelescopeControl/src/gui/CMakeLists.txt
|
||||
index bd5343581070c..b3c6c79eb1a93 100644
|
||||
--- a/plugins/TelescopeControl/src/gui/CMakeLists.txt
|
||||
+++ b/plugins/TelescopeControl/src/gui/CMakeLists.txt
|
||||
@@ -31,6 +31,7 @@ target_link_libraries(TelescopeControl_gui
|
||||
Qt${QT_VERSION_MAJOR}::Network
|
||||
Qt${QT_VERSION_MAJOR}::Gui
|
||||
Qt${QT_VERSION_MAJOR}::OpenGL
|
||||
+ Qt${QT_VERSION_MAJOR}::SerialPort
|
||||
TelescopeControl_common
|
||||
)
|
||||
|
||||
@@ -87,6 +87,10 @@ DEPEND="${RDEPEND}
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/stellarium.asc
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/stellarium-26.2-link-error.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
if tc-is-clang && ! use libcxx && [[ $(tc-get-cxx-stdlib) == libc++ ]]; then
|
||||
die "When using libc++, please enable USE=libcxx"
|
||||
|
||||
Reference in New Issue
Block a user