[neon/qt6/qt6-doc/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:14:16 BST 2023


Git commit c254c5039345bc029f63247d3099da52ecd9262d by Carlos De Maine.
Committed on 28/10/2023 at 16:14.
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  +9    -3    debian/rules

https://invent.kde.org/neon/qt6/qt6-doc/-/commit/c254c5039345bc029f63247d3099da52ecd9262d

diff --git a/debian/control b/debian/control
index 2e571eb..2ead368 100644
--- a/debian/control
+++ b/debian/control
@@ -5,11 +5,14 @@ Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>
 Uploaders: Patrick Franz <deltaone at debian.org>
 Build-Depends: cmake,
                debhelper-compat (= 13),
+               g++-12,
+               gcc-12,
                libgl-dev,
                libssl-dev,
                libvulkan-dev [linux-any],
                libx11-xcb-dev,
                libxkbcommon-dev,
+               mold,
                ninja-build,
                pkg-config,
                qt6-base-dev,
diff --git a/debian/rules b/debian/rules
index 9bdbaac..ebcacb2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,10 @@
 #!/usr/bin/make -f
 include /usr/share/dpkg/architecture.mk
 
+# need gcc 12.1 for mold to be able to process --gdb-index
+export CC=gcc-12
+export CXX=g++-12
+
 # QT_HOST_PATH isn't passed in cross-builds
 ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
         extra_cmake_args += -DQT_HOST_PATH=/usr
@@ -11,9 +15,11 @@ endif
 
 override_dh_auto_configure:
 	dh_auto_configure -- \
-                --log-level=STATUS \
-                -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
-                $(extra_cmake_args)
+		-DCMAKE_MESSAGE_LOG_LEVEL=STATUS \
+		-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
+		-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
+		-DQT_UNITY_BUILD=ON \
+		$(extra_cmake_args)
 
 override_dh_auto_build-indep:
 	dh_auto_build -- docs


More information about the Neon-commits mailing list