Package: conglomerate
Version: 0.9.1-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 conglomerate-0.9.1/debian/rules conglomerate-0.9.1/debian/rules
--- conglomerate-0.9.1/debian/rules	2009-08-19 22:59:09.000000000 -0500
+++ conglomerate-0.9.1/debian/rules	2009-08-19 22:59:09.000000000 -0500
@@ -26,11 +26,17 @@
 	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
 	# Commands to configure the package.
-	./configure --host=$(DEB_HOST_GNU_TYPE) \
-	--build=$(DEB_BUILD_GNU_TYPE) \
+	./configure $(CROSS) \
 	--prefix=/usr --mandir=\$${prefix}/share/man \
 	--sysconfdir=/etc \
 	--enable-debug \

Reply via email to