Package: ifupdown
Version: 0.6.10
Tags: patch

Hi,

I'm currently working on cross-building bits of Debian and ifupdown
fails to build. Trivial patch attached makes it build.

Cheers,
-- 
Steve McIntyre
steve.mcint...@linaro.org
--- ifupdown-0.6.10/debian/rules	2011-01-20 14:01:18.217150307 +0000
+++ ifupdown-0.6.10-cross/debian/rules	2011-01-20 14:03:47.821384245 +0000
@@ -47,6 +47,13 @@ ROOT_GROUP := 0
 
 PACKAGE=ifupdown
 
+ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+	CC=gcc
+else
+	CC=$(DEB_HOST_GNU_TYPE)-gcc
+endif
+
+
 configure:
 	dh_testdir
 
@@ -59,7 +66,7 @@ build-stamp: # configure
 	else \
 	  chmod a+rx defn2c.pl defn2man.pl makecdep.sh makenwdep.sh; \
 	fi
-	$(MAKE)
+	$(MAKE) CC=$(CC)
 	touch build-stamp
 
 test: build

Reply via email to