[neon/qt6/qt6-quick3d/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 14:31:41 BST 2023


Git commit 670241c3449831c764d80e135968646f14353533 by Carlos De Maine.
Committed on 28/10/2023 at 15:31.
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  +8    -2    debian/rules

https://invent.kde.org/neon/qt6/qt6-quick3d/-/commit/670241c3449831c764d80e135968646f14353533

diff --git a/debian/control b/debian/control
index c225ecb..f87f7ff 100644
--- a/debian/control
+++ b/debian/control
@@ -6,12 +6,15 @@ Uploaders: Patrick Franz <deltaone at debian.org>, Lu YaNing <dluyaning at gmail.com>
 Build-Depends: cmake,
                debhelper-compat (= 13),
                dh-exec,
+               g++-12,
+               gcc-12,
                libassimp-dev (>= 5.1.6~),
                libgl-dev,
                libssl-dev,
                libvulkan-dev [linux-any],
                libxcb-xkb-dev,
                libxkbcommon-dev,
+               mold,
                ninja-build,
                pkg-config,
                pkg-kde-tools,
diff --git a/debian/rules b/debian/rules
index a37b981..ee67a4f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,10 @@ include /usr/share/dpkg/architecture.mk
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
 
+# 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))
 	cmake_extra_args += \
@@ -19,9 +23,11 @@ endif
 
 override_dh_auto_configure:
 	dh_auto_configure -- \
-		--log-level=STATUS \
+		-DCMAKE_MESSAGE_LOG_LEVEL=STATUS \
 		-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
-		$(cmake_extra_args)
+		-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