FW: Cross building tzcode

Olson, Arthur David (NIH/NCI) [E] olsona at dc37a.nci.nih.gov
Thu Jan 11 18:50:31 UTC 2007

I'm forwarding this message from John Faith, who is not on the time zone
mailing list.
Those of you who are on the time zone mailing list should direct replies


-----Original Message-----
From: John Faith [mailto:jfaith at freescale.com] 
Sent: Thursday, January 11, 2007 1:39 PM
To: tz at lecserver.nci.nih.gov
Subject: Cross building tzcode

In the hope that this might be useful to someone else, attached is a
patch to the main tzcode Makefile that we use to cross build.  The
reason for the patch is that in a cross-compiling environment,
generating the data files requires a zic which runs on the host and the
target requires the cross-built binary, so the Makefile generates both. 
  I have tested this with ARM targets.

We build using a rpm .spec file with something like:

make  HOST_CC=<path_to_the_host_cc> TOPDIR=%{__prefix}
TZDIR=%{_prefix}/share/zoneinfo ETCDIR=%{_prefix}/usr/bin

By the way, you can probably ignore the parts about "nawk"->"awk" (I did
not have nawk installed), and the bit about "ksh"->"bash" (I didn't have

John Faith
Freescale Semiconductor

More information about the tz mailing list