@@ -1,11 +1,18 @@
11#!/usr/bin/make -f
22# -*- makefile -*-
33
4+include /usr/share/dpkg/default.mk
5+
46# Uncomment this to turn on verbose mode.
57#export DH_VERBOSE=1
68export DPKG_GENSYMBOLS_CHECK_LEVEL=4
79export NO_PNG_PKG_MANGLE=1
810
11+# Explicitly selecting a G{CC,++}-version here to avoid accidental
12+# ABI breaks introduced by toolchain updates.
13+export CC=$(DEB_HOST_GNU_TYPE)-gcc-4.9
14+export CXX=$(DEB_HOST_GNU_TYPE)-g++-4.9
15+
916%:
1017 dh $@ --parallel --fail-missing --with python2,python3
1118
@@ -16,7 +23,7 @@ override_dh_auto_clean:
1623override_dh_auto_configure:
1724 # Debian defines CMAKE_INSTALL_LOCALSTATEDIR as /usr/var, which is wrong.
1825 # So until Debian bug 719148 is fixed, do it ourselves.
19− dh_auto_configure -- -DCMAKE_INSTALL_LOCALSTATEDIR="/var"
26+ dh_auto_configure -- -DCMAKE_INSTALL_LOCALSTATEDIR="/var" -DCMAKE_C_COMPILER=$(CC) -DCMAKE_CXX_COMPILER=$(CXX)
2027
2128override_dh_auto_build:
2229 # doc is not a default target