X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=debian%2Frules;h=8eba169cf8cd367940043ffb15816c20e5d43f06;hp=6fb05f0f5d863a3a859586a47af1d3e1f259e516;hb=ad7dd95f8e6b93b2db436e3131ca42e4a623d306;hpb=11e2834381fa3eb7b6ef6420241532896f2900bf diff --git a/debian/rules b/debian/rules index 6fb05f0..8eba169 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,10 @@ #!/usr/bin/make -f # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. -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 @@ -9,7 +12,10 @@ DEBTMP := $(shell pwd)/debian/tmp build: build-stamp build-stamp: dh_testdir - CFLAGS="-g -Wall" ./configure \ +ifeq ($(DEB_HOST_ARCH),ia64) + patch -p1 < debian/bzero.patch +endif + CFLAGS="-g -O2 -Wall" ./configure \ --mandir='$${prefix}/share/man' \ --enable-secure-statd $(MAKE)