Package: xdemineur Version: 2.1.1-11 Severity: wishlist Tags: patch User: [EMAIL PROTECTED] Usertags: crossbuilt
In line with the other cross-building support bugs: http://lists.debian.org/debian-devel/2007/11/msg00116.html This patch is necessary to allow file to cross-build in Debian, following recommendations in autotools-dev. *** ../crossbuild.diff --- xdemineur-2.1.1.debian/debian/rules +++ xdemineur-2.1.1.emdebian/debian/rules @@ -8,6 +8,13 @@ TMPDIR = `pwd`/debian/xdemineur include /usr/share/dpatch/dpatch.make +DEB_HOST_GNU_TYPE=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc +else +CROSS= +endif ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 @@ -19,7 +26,7 @@ xdemineur: patch dh_testdir xmkmf - $(MAKE) CFLAGS+=$(CFLAGS) + $(MAKE) CFLAGS+=$(CFLAGS) $(CROSS) touch build-stamp clean: unpatch -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash
signature.asc
Description: Digital signature

