--- ntp.old/debian/rules Sun Aug 3 21:14:15 2008 +++ /opt/emdebian/trunk/n/ntp/trunk/ntp-4.2.4p4+dfsg/debian/rules Sun Aug 3 21:16:07 2008 @@ -2,6 +2,14 @@ include /usr/share/quilt/quilt.make +DEB_HOST_GNU_TYPE=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) --cache-file=$(DEB_HOST_GNU_TYPE).cache +else +CROSS= +endif + # hacks to avoid running these things during the build export ACLOCAL = : aclocal export AUTOCONF = : autoconf @@ -12,15 +20,15 @@ ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else -CFLAGS += -O2 +CFLAGS += endif config: patch config.status config.status: $(QUILT_STAMPFN) dh_testdir - ./configure CFLAGS='$(CFLAGS)' \ + ./configure CFLAGS='$(CFLAGS)' $(CROSS) \ ac_cv_var_tick=no ac_cv_var_tickadj=no \ - --prefix=/usr \ + --prefix=/usr --without-crpyto \ --enable-all-clocks --enable-parse-clocks --enable-SHM \ --disable-debugging --sysconfdir=/var/lib/ntp \ --with-sntp=no \ @@ -77,15 +85,10 @@ binary-indep: build install dh_testdir -i dh_testroot -i - dh_installdocs -i html rm -f debian/ntp-doc/usr/share/doc/ntp-doc/html/hints/solaris* - dh_installexamples -i - dh_installman -i dh_installcron -i dh_installlogcheck -i - dh_installchangelogs -i dh_installifupdown -i - dh_perl -i dh_compress -i dh_fixperms -i dh_installdeb -i @@ -96,16 +99,11 @@ binary-arch: build install dh_testdir -a dh_testroot -a - dh_installdocs -a - dh_installexamples -a - dh_installman -a dh_installinit -pntp --update-rcd-params="defaults 23" --error-handler=installinit_error dh_installinit -pntpdate dh_installcron -a dh_installlogcheck -a - dh_installchangelogs -a dh_installifupdown -a - dh_perl -a dh_strip -a dh_compress -a dh_fixperms -a