From b42d4f3eda3d767edec03e2cc6e6ae46fe0f8783 Mon Sep 17 00:00:00 2001 From: Alastair McKinstry Date: Tue, 4 Dec 2018 15:54:01 +0000 Subject: [PATCH] use -g1 for mips, mipsel to avoid OOM. Closes: #915506 --- debian/changelog | 6 ++++++ debian/rules | 12 +++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 3b03a79..e6d02f4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +mathgl (2.4.2.1-3) unstable; urgency=medium + + * use -g1 for mips, mipsel to avoid OOM. Closes: #915506 + + -- Alastair McKinstry Tue, 04 Dec 2018 14:44:18 +0000 + mathgl (2.4.2.1-2) unstable; urgency=medium * Add qtwebengine5-dev to Build-Depends due to the output of cmake diff --git a/debian/rules b/debian/rules index 3ceb32f..e8d07d4 100755 --- a/debian/rules +++ b/debian/rules @@ -10,11 +10,21 @@ export DH_VERBOSE=1 export DH_OPTIONS=-v +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk + +# On low-memory archs, use -g1 to avoid OOM +LOWMEM_ARCH:= mips mipsel +ifneq ($(filter $(LOMEM_ARCH), $(DEB_HOST_ARCH)),) +CXXFLAGS:= $(shell dpkg-buildflags --get CXXFLAGS | sed 's/-g/-g1/') +export CXXFLAGS +endif + %: dh $@ --buildsystem=cmake --with python2,python3 override_dh_python2: dh_numpy - + override_dh_python3: dh_numpy3 -- 2.30.2