Package: tthsum
Version: 1.1.0-1
Severity: minor
Tags: patch

        Hey

 While looking at building your package for ARM CPUs, I tried
 cross-building it and noticed it didn't because cdbs only sets CC in
 the environment when calling make which is not enough in your case.

 If you could convince upstream to change "CC = gcc" to "CC ?= gcc", I
 think that would fix it.

 In the mean time, I'm attaching a CC override patch which fixes the
 problem for me, but clutter the packaging a bit.

  Cheers
-- 
Loïc Minier
diff -u tthsum-1.1.0/debian/changelog tthsum-1.1.0/debian/changelog
--- tthsum-1.1.0/debian/changelog
+++ tthsum-1.1.0/debian/changelog
@@ -1,3 +1,10 @@
+tthsum (1.1.0-2) UNRELEASED; urgency=low
+
+  * Fix cross-build by setting CC to $(DEB_HOST_GNU_TYPE)-gcc via
+    DEB_MAKE_INVOKE if DEB_BUILD_ and DEB_HOST_GNU_TYPE differ.
+
+ -- Loïc Minier <loic.min...@linaro.org>  Tue, 05 Oct 2010 11:58:00 +0200
+
 tthsum (1.1.0-1) unstable; urgency=low
 
   * initial upload (closes: #312503)
diff -u tthsum-1.1.0/debian/rules tthsum-1.1.0/debian/rules
--- tthsum-1.1.0/debian/rules
+++ tthsum-1.1.0/debian/rules
@@ -6 +6,6 @@
-include /usr/share/cdbs/1/class/makefile.mk  
+include /usr/share/cdbs/1/class/makefile.mk
+
+ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+DEB_MAKE_INVOKE += CC=$(DEB_HOST_GNU_TYPE)-gcc
+endif
+

Reply via email to