From 4fe7f8982cadb136ff0422445e372c70b1a15d89 Mon Sep 17 00:00:00 2001 From: Kevin Kofler Date: Mon, 21 Mar 2016 18:36:00 +0100 Subject: [PATCH] Use -g1 instead of -g on non-x86_64 to avoid memory exhaustion At least i686 runs out of memory otherwise, but ARM would probably crash too if it got that far, so be conservative. --- qt5-qtwebengine.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/qt5-qtwebengine.spec b/qt5-qtwebengine.spec index f8e466a..000b1a3 100644 --- a/qt5-qtwebengine.spec +++ b/qt5-qtwebengine.spec @@ -299,11 +299,20 @@ BuildArch: noarch %patch7 -p1 -b .chimera-nss-init %patch8 -p1 -b .no-sse2 +%ifnarch x86_64 +# most arches run out of memory with full debuginfo, so use -g1 on non-x86_64 +sed -e 's/=-g$/=-g1/g' src/core/gyp_run.pro +%endif + %build export STRIP=strip export NINJAFLAGS="-v %{_smp_mflags}" export NINJA_PATH=%{_bindir}/ninja-build export CXXFLAGS="%{optflags} -fno-delete-null-pointer-checks" +%ifnarch x86_64 +# most arches run out of memory with full debuginfo, so use -g1 on non-x86_64 +export CXXFLAGS=`echo "$CXXFLAGS" | sed -e 's/ -g / -g1 /g'` +%endif mkdir %{_target_platform} pushd %{_target_platform} @@ -428,6 +437,7 @@ readelf -wl %{buildroot}%{_qt5_libdir}/libQt5WebEngineCore.so.5.* * Mon Mar 21 2016 Kevin Kofler - 5.6.0-3 - Build with CONFIG+="webcore_debug v8base_debug force_debug_info" - Force -fno-delete-null-pointer-checks through CXXFLAGS, Qt flags not used here +- Use -g1 instead of -g on non-x86_64 to avoid memory exhaustion * Fri Mar 18 2016 Kevin Kofler - 5.6.0-2 - Avoid checking for the nonexistent icudtl.dat and silence the warnings