1
Date: Sun, 12 Dec 2004 21:43:35 +0900
2
From: NIIBE Yutaka <gniibe@fsij.org>
3
To: Debian Bug Tracking System <submit@bugs.debian.org>
4
Reply-To: NIIBE Yutaka <gniibe@fsij.org>, 285304@bugs.debian.org
5
Subject: Bug#285304: bc: [PATCH] cross build
11
Cross-building bc package, I needed following patch.
12
Could you please consider to include this fix in next release?
14
* debian/rules: Do configure --host on cross build.
16
-- NIIBE Yutaka <gniibe@fsij.org> Sun, 12 Dec 2004 21:40:25 +0900
18
--- bc-1.06/debian/rules
19
+++ bc-1.06/debian/rules
24
+DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
25
+DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
26
+ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
27
+CONFARGS = --host=$(DEB_HOST_GNU_TYPE)
32
- ./configure --prefix=/usr --with-readline
33
+ ./configure --prefix=/usr --with-readline $(CONFARGS)
34
$(MAKE) CFLAGS="-O2 -g -Wall -D_POSIX_SOURCE -DDOT_IS_LAST"
35
(cd doc; texi2html -monolithic -expandinfo -number $(package2).texi)