X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=debian%2Frules;h=f3532ed877ad86f8d1dad63f78af42d50a10e308;hp=ab230c4395db44475d264bbc3832baa6462f3162;hb=0c4b46267e8ce1a7326f716bb5122e45e791c98c;hpb=ad50dfa7f017451a77294fa4a58983ca6e0378f8 diff --git a/debian/rules b/debian/rules index ab230c4..f3532ed 100755 --- a/debian/rules +++ b/debian/rules @@ -3,13 +3,21 @@ export DH_VERBOSE=1 +DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) +DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) + # Temporary root DEBTMP := $(shell pwd)/debian/tmp build: build-stamp build-stamp: dh_testdir - ./configure \ +ifeq ($(DEB_HOST_ARCH),ia64) + patch -p1 < debian/bzero.patch +endif + CFLAGS="-g -Wall" ./configure \ --mandir='$${prefix}/share/man' \ --enable-secure-statd $(MAKE)