- 下载
Time Zone Database
tzdata2024a.tar.gz
tzcode2024a.tar.gz
- 解压
注意,要解压到一个目录
tar xf tzcode2024a.tar.gz
tar xf tzdata2024a.tar.gz
- 编译
这里直接指定了编译后安装路径,十分方便。
CROSS_NAME=aarch64-mix210-linuxexport PATH=/opt/linux/x86-arm/${CROSS_NAME}/bin:${PATH}DST_DIR=${HOME}/zonetestmake cleansudo make \CC=${CROSS_NAME}-gcc \AR=${CROSS_NAME}-ar \CFLAGS="-DHAVE_GETTEXT=0 -DHAVE_GETRANDOM=0"sudo make \DESTDIR=${DST_DIR} \install
- 检查
file ziczic: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, not stripped