summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2017-08-27 23:18:14 +0300
committerDmitry Shachnev <mitya57@gmail.com>2017-08-27 23:18:14 +0300
commit35b01939f299a2c625c919db45b5f6a3b0b5d050 (patch)
treea1d424b8d74fc00221a5d78040ff008114bb72e2 /debian
parentda0171a763dfe573868d7c1dec1b1b6eb9a37913 (diff)
downloadqt5webkit-35b01939f299a2c625c919db45b5f6a3b0b5d050.tar.gz
Add back the logic to replace -g with -gstabs.
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/rules12
1 files changed, 8 insertions, 4 deletions
diff --git a/debian/rules b/debian/rules
index 59ca27f..dc515ee 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,10 +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)
-gstab_architectures := amd64 i386 powerpc s390x
-fulldebug_architectures := none
-disabled_jit_architectures := armel mips mipsel
-disabled_pch_architectures := amd64 powerpc s390x
+gstabs_architectures := amd64 i386 powerpc ppc64el s390x
+
+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
+endif
# JIT is only supported on x86 / armhf / aarch64 / mips32
ifeq (,$(filter $(DEB_HOST_ARCH_CPU),amd64 arm64 armhf i386 mips mipsel sh4))