--- fdupes-1.50-PR2/debian/rules        2012-06-17 19:46:54.000000000 +0000
+++ fdupes/debian/rules 2013-08-09 16:09:47.914851517 +0000
@@ -3,7 +3,12 @@
 # This script uses debhelper by Joey Hess
 # export DH_VERBOSE=1
 
+DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
+ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+       export CC=$(DEB_HOST_GNU_TYPE)-gcc
+endif
 
 build-arch: build
 build-indep: build
