Hi, Another solution could be to add ggc-min-expand=20 to CXXFLAGS.
The solution is tested on mips and mipsel. A patch that contains needed changes is attached. Regards, Dejan
--- icinga2-2.5.4.orig/debian/rules 2016-08-26 08:11:01.000000000 +0000 +++ icinga2-2.5.4/debian/rules 2016-09-09 11:12:59.387685354 +0000 @@ -2,6 +2,13 @@ #export DH_VERBOSE=1 + +DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) + +ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel)) + export DEB_CXXFLAGS_MAINT_APPEND = --param ggc-min-expand=20 +endif + %: dh $@ --with systemd --with bash_completion