aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2023-01-25 15:54:52 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2023-01-25 15:54:52 +0000
commit783c318fd1181d46554c31a5039db10e7f5eef49 (patch)
tree675f6d9221c75b63a3e62385c29a2eefc40daf01
parent4410e857965edef0e3be42ae323356ec08d2aaad (diff)
zoneinfo: On amd64, include 32-bit data.
While there, drop the unnecessary posixrules option. Sponsored by: Klara, Inc. Reviewed by: imp, allanjude Differential Revision: https://reviews.freebsd.org/D38142
-rw-r--r--share/zoneinfo/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/share/zoneinfo/Makefile b/share/zoneinfo/Makefile
index dfe148544bd6..cffd12cc5e9a 100644
--- a/share/zoneinfo/Makefile
+++ b/share/zoneinfo/Makefile
@@ -51,7 +51,6 @@ LEAPFILE=
TZFILES= africa antarctica asia australasia etcetera europe \
factory northamerica southamerica
TZFILES+= backward
-POSIXRULES= America/New_York
TZFILES:= ${TZFILES:S/^/${CONTRIBDIR}/}
@@ -78,11 +77,17 @@ all: zoneinfo
.endif
META_TARGETS+= zoneinfo install-zoneinfo
+# On amd64, include 32-bit data for compatibility with statically-linked
+# i386 binaries which still use a 32-bit time_t.
+.if ${MACHINE_ARCH} == "amd64"
+ZICFLAGS+= -b fat
+.endif
+
zoneinfo: ${TDATA}
mkdir -p ${TZBUILDDIR}
cd ${TZBUILDDIR}; mkdir -p ${TZBUILDSUBDIRS}
umask 022; cd ${.CURDIR}; \
- zic -D -d ${TZBUILDDIR} -p ${POSIXRULES} -m ${NOBINMODE} \
+ zic -D -d ${TZBUILDDIR} ${ZICFLAGS} -m ${NOBINMODE} \
${LEAPFILE} ${TZFILES}
#