Package: diff-ext
Version: 0.2.3-3.1
Severity: minor
Tags: patch

Hi!

Please note that by specifying both --build and --host to configure,
the configure script (incorrectly) assumes that you are cross
compiling, i.e. uses a compiler name of the form
$(ARCH)-linux-gnu-gcc, rather than just gcc. For more information,
see:

http://lists.debian.org/debian-devel/2007/11/msg00118.html

I have attached a patch, which uses the guidlines at:

http://wiki.debian.org/EmdebianGuide#Addingcross-builddetection

HTH, and thanks!

Kumar
diff -Nru --exclude changelog diff-ext-0.2.3/debian/rules diff-ext-0.2.3/debian/rules
--- diff-ext-0.2.3/debian/rules	2009-08-19 23:01:41.000000000 -0500
+++ diff-ext-0.2.3/debian/rules	2009-08-19 23:01:41.000000000 -0500
@@ -10,9 +10,16 @@
 	CFLAGS += -O2
 endif
 
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+else
+CROSS= --build $(DEB_BUILD_GNU_TYPE)
+endif
+
+
 config.status: configure
 	dh_testdir
-	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --with-gconf-schema-file-dir=\$${datadir}/gconf/schemas --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" --disable-schemas-install
+	./configure $(CROSS) --prefix=/usr --with-gconf-schema-file-dir=\$${datadir}/gconf/schemas --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" --disable-schemas-install
 
 build: build-stamp
 

Reply via email to