[neon/qt6/qt6-webengine/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:10:51 BST 2023


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

https://invent.kde.org/neon/qt6/qt6-webengine/-/commit/08f14b93497f12870c8ebba924894e7bd8d6da87

diff --git a/debian/control b/debian/control
index 334e22e..9706913 100644
--- a/debian/control
+++ b/debian/control
@@ -8,6 +8,8 @@ Build-Depends: binutils (>= 2.32-8~),
                cmake,
                debhelper-compat (= 13),
                flex,
+               g++-12,
+               gcc-12,
                gperf,
                generate-ninja,
                libasound2-dev,
@@ -75,6 +77,7 @@ Build-Depends: binutils (>= 2.32-8~),
                libxss-dev,
                libxtst-dev,
                mesa-common-dev,
+               mold,
                ninja-build,
 #               node-pako,
 #               node-rollup-plugin-terser,
diff --git a/debian/rules b/debian/rules
index a39dc52..ed0fb5d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,11 @@ include /usr/share/dpkg/architecture.mk
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
 export DH_VERBOSE = 1
 
+# need gcc 12.1 for mold to be able to process --gdb-index
+export CC=gcc-12
+export CXX=g++-12
+
+
 PARALLEL_OPTION = $(filter parallel=%,$(DEB_BUILD_OPTIONS))
 ifneq (,$(PARALLEL_OPTION))
 	NUMJOBS = $(patsubst parallel=%,%,$(PARALLEL_OPTION))
@@ -49,8 +54,9 @@ override_dh_auto_configure:
 	ln -s ~/.nvm/versions/node/v18.5.0/ ./src/3rdparty/chromium/third_party/node/linux/node-linux-x64
 	bash -c "source ~/.nvm/nvm.sh && \
 	dh_auto_configure -- \
-		--log-level=STATUS \
+		-DCMAKE_MESSAGE_LOG_LEVEL=STATUS \
 		-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
+		-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
 		-DFEATURE_qtpdf_build=ON \
 		-DFEATURE_qtpdf_enable_v8=ON \
 		-DFEATURE_qtpdf_quick_build=ON \
@@ -65,9 +71,10 @@ override_dh_auto_configure:
 		-DFEATURE_webengine-system-libpng=on \
 		-DFEATURE_webengine_system_zlib=ON \
 		-DFEATURE_webengine_webrtc=ON \
-		-DFEATURE_webengine_webrtc-pipewire=ON"
+		-DFEATURE_webengine_webrtc-pipewire=ON \
+		-DQT_UNITY_BUILD=ON"
 
-	# Create js files, that are needed for building step for arch and indep builds
+# Create js files, that are needed for building step for arch and indep builds
 	cd $(CURDIR)/src/3rdparty/chromium/third_party/jstemplate/; \
 		cat util.js jsevalcontext.js jstemplate.js exports.js > jstemplate_compiled.js
 


More information about the Neon-commits mailing list