Package: ed
Version: 0.7-1
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 diffutils 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.

--- ed-0.7/debian/rules 
+++ ed.new/debian/rules 
@@ -11,6 +11,11 @@
 
 DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc
+else
+CROSS=
+endif
 
 install_dir=install -d -m 755
 install_file=install -m 644
@@ -22,7 +27,7 @@
 build: patch-stamp
        $(checkdir)
        ./configure --prefix=/usr
-       $(MAKE) CFLAGS="-O2 -g -Wall"
+       $(MAKE) $(CROSS) CFLAGS="-O2 -g -Wall"
        touch build
 
 test: build


--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.22-2-amd64

Debian Release: lenny/sid
  500 unstable        www.linux.codehelp.co.uk 
  500 unstable        www.emdebian.org 
  500 unstable        ftp.uk.debian.org 

--- Package information. ---
Depends       (Version) | Installed
=======================-+-===========
libc6        (>= 2.6-1) | 2.6.1-6


-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgpqetHgsUaCb.pgp
Description: PGP signature

Reply via email to