@@ -1,11 +1,18 @@
1#!/usr/bin/make -f
1#!/usr/bin/make -f
2# -*- makefile -*-
2# -*- makefile -*-
4+include /usr/share/dpkg/default.mk
4# Uncomment this to turn on verbose mode.
6# Uncomment this to turn on verbose mode.
5#export DH_VERBOSE=1
7#export DH_VERBOSE=1
6export DPKG_GENSYMBOLS_CHECK_LEVEL=4
8export DPKG_GENSYMBOLS_CHECK_LEVEL=4
7export NO_PNG_PKG_MANGLE=1
9export NO_PNG_PKG_MANGLE=1
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
10 dh $@ --parallel --fail-missing --with python2,python3
17 dh $@ --parallel --fail-missing --with python2,python3
@@ -16,7 +23,7 @@ override_dh_auto_clean:
16override_dh_auto_configure:
23override_dh_auto_configure:
17 # Debian defines CMAKE_INSTALL_LOCALSTATEDIR as /usr/var, which is wrong.
24 # Debian defines CMAKE_INSTALL_LOCALSTATEDIR as /usr/var, which is wrong.
18 # So until Debian bug 719148 is fixed, do it ourselves.
25 # 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)
21override_dh_auto_build:
28override_dh_auto_build:
22 # doc is not a default target
29 # doc is not a default target