[neon/qt6/qt6-shadertools/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 12:46:54 BST 2023


Git commit 9732a2683579a5605bc15cbc2a2c276290d84c3a by Carlos De Maine.
Committed on 28/10/2023 at 13:46.
Pushed by carlosdem into branch 'Neon/unstable'.

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

M  +2    -0    debian/control
M  +4    -3    debian/rules

https://invent.kde.org/neon/qt6/qt6-shadertools/-/commit/9732a2683579a5605bc15cbc2a2c276290d84c3a

diff --git a/debian/control b/debian/control
index 7ae06ca..a76eca8 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,8 @@ 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,
                libgl1-mesa-dev,
                libvulkan-dev [linux-any],
                libxkbcommon-dev,
diff --git a/debian/rules b/debian/rules
index e4a349e..0155174 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,9 +5,10 @@ export DH_VERBOSE = 1
 include /usr/share/dpkg/architecture.mk
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
-export LDFLAGS_EXTRA += -fuse-ld=mold
-export CXXFLAGS_EXTRA += -fuse-ld=mold
-export CFLAGS_EXTRA += -fuse-ld=mold
+
+# 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))


More information about the Neon-commits mailing list