From 403e155a4b9d5814e083c7e5e3a3709a458826da Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Thu, 14 Sep 2017 20:34:58 +0300 Subject: Use -g1 on less powerful architectures instead of no debug at all. This is what Fedora and webkit2gtk maintainers do. --- debian/changelog | 1 + debian/rules | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/debian/changelog b/debian/changelog index f107824..5b1a518 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ qtwebkit-opensource-src (5.212.0~alpha2-2) UNRELEASED; urgency=medium [ Dmitry Shachnev ] * Add -DNDEBUG to CPPFLAGS to disable debug output. + * Use -g1 on less powerful architectures instead of no debug at all. -- Debian Qt/KDE Maintainers Wed, 13 Sep 2017 18:44:14 +0300 diff --git a/debian/rules b/debian/rules index 2d9b2e6..58a1b61 100755 --- a/debian/rules +++ b/debian/rules @@ -7,14 +7,14 @@ DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) -gstabs_architectures := amd64 powerpc ppc64el s390x - export DEB_CPPFLAGS_MAINT_APPEND = -DNDEBUG -export DEB_CXXFLAGS_MAINT_STRIP = -g -# Enable gstabs debugging symbols only on gstabs_architectures -ifneq (,$(filter $(DEB_HOST_ARCH_CPU),$(gstabs_architectures))) - export DEB_CXXFLAGS_MAINT_APPEND = -gstabs +# The debug packages produced by webkit are huge and cause problems in +# most buildds, so use -g1 in all architectures except the ones that +# are known to work fine +ifeq (,$(filter $(DEB_HOST_ARCH_CPU),ppc64 ppc64el s390x)) + export DEB_CXXFLAGS_MAINT_STRIP = -g + export DEB_CXXFLAGS_MAINT_APPEND = -g1 endif # JIT is only supported on x86 / armhf / aarch64 / mips32 -- cgit v1.2.3