FW: Cross building tzcode
Olson, Arthur David (NIH/NCI) [E]
olsona at dc37a.nci.nih.gov
Thu Jan 11 19:00:00 UTC 2007
Let's see if we can include the attachment this time, yes?
--ado
-----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
Hello,
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
ksh).
Thanks!
,
John Faith
Freescale Semiconductor
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: timezone-2006n-make.patch
URL: <http://mm.icann.org/pipermail/tz/attachments/20070111/82d15e69/attachment.ksh>
More information about the tz
mailing list