[neon/qt6/qt6-translations/Neon/unstable] debian: need gcc 12.1 for mold to be able to process --gdb-index

Carlos De Maine null at kde.org
Sat Oct 28 15:03:16 BST 2023


Git commit e14907bba98b525cb9f529df87334d596445ce8b by Carlos De Maine.
Committed on 28/10/2023 at 16:03.
Pushed by carlosdem into branch 'Neon/unstable'.

need gcc 12.1 for mold to be able to process --gdb-index

M  +3    -0    debian/control
M  +12   -0    debian/rules

https://invent.kde.org/neon/qt6/qt6-translations/-/commit/e14907bba98b525cb9f529df87334d596445ce8b

diff --git a/debian/control b/debian/control
index 1a419d2..7cfc002 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,10 @@ Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>
 Uploaders: Patrick Franz <deltaone at debian.org>
 Build-Depends: cmake (>= 3.18~),
                debhelper-compat (= 13),
+               g++-12,
+               gcc-12,
                libxkbcommon-dev,
+               mold,
                ninja-build,
                pkg-config,
                qt6-base-dev (>= 6.4.2+dfsg~),
diff --git a/debian/rules b/debian/rules
index 9849451..de64a2e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,16 @@
 #!/usr/bin/make -f
 
+# need gcc 12.1 for mold to be able to process --gdb-index
+export CC=gcc-12
+export CXX=g++-12
+
 %:
 	dh $@ --buildsystem=cmake+ninja
+
+	override_dh_auto_configure:
+	dh_auto_configure -- \
+		-DCMAKE_MESSAGE_LOG_LEVEL=STATUS \
+		-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
+		-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
+		-DQT_UNITY_BUILD=ON \
+		$(extra_cmake_args)


More information about the Neon-commits mailing list