--- Makefile.orig 2014-10-01 15:40:50.900427432 +0000 +++ Makefile 2014-10-01 15:42:37.400428739 +0000 @@ -231,8 +231,8 @@ LDFLAGS= $(LFLAGS) -zic= ./zic -ZIC= $(zic) $(ZFLAGS) +ZIC_HOST= ./zic_host +ZIC= $(ZIC_HOST) $(ZFLAGS) ZFLAGS= @@ -347,7 +347,7 @@ $(DESTDIR)$(LIBDIR) $(DESTDIR)$(BINDIR) \ $(DESTDIR)$(MANDIR)/man3 $(DESTDIR)$(MANDIR)/man5 \ $(DESTDIR)$(MANDIR)/man8 - $(ZIC) -y $(YEARISTYPE) \ + $(ZIC_HOST) -y $(YEARISTYPE) \ -d $(DESTDIR)$(TZDIR) -l $(LOCALTIME) -p $(POSIXRULES) cp -f iso3166.tab zone.tab $(DESTDIR)$(TZDIR)/. cp zic zdump $(DESTDIR)$(SBINDIR)/. @@ -380,11 +380,11 @@ $(AWK) -f leapseconds.awk leap-seconds.list >$@ posix_only: zic $(TDATA) - $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR) \ + $(ZIC_HOST) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR) \ -L /dev/null $(TDATA) right_only: zic leapseconds $(TDATA) - $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR) \ + $(ZIC_HOST) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR) \ -L leapseconds $(TDATA) # In earlier versions of this makefile, the other two directories were @@ -398,16 +398,16 @@ # to using them, or vice versa. right_posix: right_only leapseconds rm -fr $(DESTDIR)$(TZDIR)/right - $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \ + $(ZIC_HOST) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \ -L leapseconds $(TDATA) - $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \ + $(ZIC_HOST) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \ -L /dev/null $(TDATA) posix_right: posix_only leapseconds rm -fr $(DESTDIR)$(TZDIR)-posix - $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \ + $(ZIC_HOST) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \ -L /dev/null $(TDATA) - $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \ + $(ZIC_HOST) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \ -L leapseconds $(TDATA) zones: $(REDO)