# Explicitly selecting a G{CC,++}-version here to avoid accidental
# ABI breaks introduced by toolchain updates.
include /usr/share/dpkg/default.mk
export CC=$(DEB_HOST_GNU_TYPE)-gcc-4.9
export CXX=$(DEB_HOST_GNU_TYPE)-g++-4.9
(It is the -D flags to CMake that were unnecessary.)
You need to set this at the top of debian/rules:
# Explicitly selecting a G{CC,++}-version here to avoid accidental dpkg/default. mk HOST_GNU_ TYPE)-gcc- 4.9 HOST_GNU_ TYPE)-g+ +-4.9
# ABI breaks introduced by toolchain updates.
include /usr/share/
export CC=$(DEB_
export CXX=$(DEB_
(It is the -D flags to CMake that were unnecessary.)