diff options
-rw-r--r-- | debian/changelog | 1 | ||||
-rwxr-xr-x | debian/rules | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 79de072..e04f7c4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,7 @@ inetutils (2:1.5.dfsg.1-5) UNRELEASED; urgency=low * Remove Tag fields, those are better maintained outside the package, as a side effect there's not typo to fix anymore. (Closes: #418539) * Now using Standards-Version 3.7.3 (no changes needed). + * Call configure with autotools-dev recommended --build and --host options. -- Guillem Jover <guillem@debian.org> Fri, 18 May 2007 07:37:19 +0300 diff --git a/debian/rules b/debian/rules index 34c5a12..a0fb1f4 100755 --- a/debian/rules +++ b/debian/rules @@ -7,6 +7,12 @@ DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) +ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + conf_gnu_type += --build $(DEB_HOST_GNU_TYPE) +else + conf_gnu_type += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +endif + CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) @@ -39,7 +45,7 @@ config.status: configure dh_testdir ./configure \ - --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ + $(conf_gnu_type) \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ |