Package: udhcp Version: 0.9.8cvs20050303-2 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 udhcp to cross-build in Debian. This occurs because the cross building tools have been rewritten to support CC_FOR_BUILD for packages that compile internal build tools and therefore the tools no longer explicitly override the MAKEFLAGS. Thanks. *** ../crossbuild.diff --- udhcp-0.9.8cvs20050303.debian/debian/rules +++ udhcp-0.9.8cvs20050303.emdebian/debian/rules @@ -2,10 +2,17 @@ version=$(shell dpkg-parsechangelog | grep ^Version:.* | cut -d ' ' -f 2) architecture=$(shell dpkg --print-architecture) +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 LD=$(DEB_HOST_GNU_TYPE)-gcc +else +CROSS= +endif build: $(checkdir) - $(MAKE) + $(MAKE) $(CROSS) touch build clean: -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.22-2-amd64 (SMP w/1 CPU core) 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