diff options
author | Guillem Jover <guillem@debian.org> | 2007-12-05 06:03:59 +0000 |
---|---|---|
committer | Guillem Jover <guillem@hadrons.org> | 2010-06-10 23:21:22 +0200 |
commit | 32ea900e34858cba619a80b69899e9a92148ff8d (patch) | |
tree | 217cf3e1c3a36504684ab1e928fb2849a98c5130 | |
parent | debf6bd9866f944c91e2cc60c3a4279bee235fe0 (diff) | |
download | inetutils-32ea900e34858cba619a80b69899e9a92148ff8d.tar.gz |
Call configure with autotools-dev recommended --build and --host 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 \ |